diff options
author | Thomas White <taw@physics.org> | 2020-08-28 11:22:17 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-28 11:22:44 +0200 |
commit | 4af4bb340eaa2b7a7fe34c36b6b9c6da29a1eec0 (patch) | |
tree | 1d750d64232899fa199a3d306e2672eda0520887 /src/gui_index.c | |
parent | 3cae5a88c880a3f20dd8305c58b13fd85665882f (diff) |
Insist on a job name
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); |