aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-05-11 11:24:36 +0200
committerThomas White <taw@physics.org>2021-05-11 11:24:36 +0200
commitb0879e0989711bb0dd1109425584bb75141cbbe8 (patch)
treef454f997517d7c34c44e3d434d7ea14250b51762 /src
parent1d362a2b6455049d8f593094265492097e530c8d (diff)
GUI: Fix checkbox logic in CrystFELMergeOpts
Diffstat (limited to 'src')
-rw-r--r--src/crystfelmergeopts.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/crystfelmergeopts.c b/src/crystfelmergeopts.c
index 40411852..0cf1fd76 100644
--- a/src/crystfelmergeopts.c
+++ b/src/crystfelmergeopts.c
@@ -104,15 +104,16 @@ static int check_greyout(GtkWidget *nothing, CrystFELMergeOpts *mo)
gtk_widget_set_sensitive(GTK_WIDGET(mo->deltacchalf), TRUE);
gtk_widget_set_sensitive(GTK_WIDGET(mo->custom_split), TRUE);
gtk_widget_set_sensitive(GTK_WIDGET(mo->detwin), TRUE);
- disable_if_inactive(mo->use_max_adu, mo->max_adu);
disable_if_inactive(mo->custom_split, mo->custom_split_file);
- disable_if_inactive(mo->min_res, mo->min_res_val);
- disable_if_inactive(mo->limit_res, mo->push_res);
disable_if_inactive(mo->detwin, mo->detwin_sym);
disable_if_inactive(mo->scale, mo->bscale);
deactivate_if_inactive(mo->scale, mo->bscale);
}
+ disable_if_inactive(mo->use_max_adu, mo->max_adu);
+ disable_if_inactive(mo->min_res, mo->min_res_val);
+ disable_if_inactive(mo->limit_res, mo->push_res);
+
return FALSE;
}