From b0879e0989711bb0dd1109425584bb75141cbbe8 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 11 May 2021 11:24:36 +0200 Subject: GUI: Fix checkbox logic in CrystFELMergeOpts --- src/crystfelmergeopts.c | 7 ++++--- 1 file 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; } -- cgit v1.2.3