diff options
Diffstat (limited to 'src/gui_index.c')
-rw-r--r-- | src/gui_index.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c index ebb0b54d..f989b538 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -158,6 +158,11 @@ static void index_all_response_sig(GtkWidget *dialog, gint resp, job_title = gtk_entry_get_text(GTK_ENTRY(njp->job_title_entry)); job_notes = get_all_text(GTK_TEXT_VIEW(njp->job_notes_text)); + if ( job_title[0] == '\0' ) { + ERROR("You must provide a job name.\n"); + return; + } + free(njp->proj->indexing_new_job_title); njp->proj->indexing_new_job_title = strdup(job_title); |