diff options
author | Thomas White <taw@physics.org> | 2021-02-17 11:58:40 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-02-17 11:58:40 +0100 |
commit | f5299db7a366bba35c9a57000da72b99597d145a (patch) | |
tree | dea2f08fc29c9435d7351f8830c6669f3e7bacfb /src/gui_merge.c | |
parent | 87736eb01c7b9ca7d87680a897210e407ac0de0e (diff) |
GUI: Prevent opening multiple merging windows
Diffstat (limited to 'src/gui_merge.c')
-rw-r--r-- | src/gui_merge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui_merge.c b/src/gui_merge.c index 44bf2846..ae94fd30 100644 --- a/src/gui_merge.c +++ b/src/gui_merge.c @@ -268,6 +268,8 @@ gint merge_sig(GtkWidget *widget, struct crystfelproject *proj) int i; struct new_merging_job_params *njp; + if ( proj->merging_opts != NULL ) return FALSE; + njp = malloc(sizeof(struct new_merging_job_params)); if ( njp == NULL ) return FALSE; |