aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui_index.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index 2634f525..b629c751 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -408,6 +408,13 @@ gint index_all_sig(GtkWidget *widget, struct crystfelproject *proj)
if ( proj->indexing_opts != NULL ) return FALSE;
+ if ( proj->geom_filename == NULL ) {
+ error_box(proj, "No geometry file was selected. "
+ "You must select a geometry file via 'Load data' before using "
+ "this function");
+ return FALSE;
+ }
+
njp = malloc(sizeof(struct new_index_job_params));
if ( njp == NULL ) return FALSE;