diff options
author | Thomas White <taw@physics.org> | 2022-08-26 13:09:26 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-08-26 13:09:26 +0200 |
commit | 669c9df2ed66681f17a4b381d3d1deba4e5a08b2 (patch) | |
tree | 1490d732704c123ed75708764abedd1483be7bab | |
parent | 857aeea2e416eee1d2f3e645308ca87503da22bc (diff) |
GUI: Refuse to open "Index all frames" without a geometry filename
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/73
-rw-r--r-- | src/gui_index.c | 7 |
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; |