aboutsummaryrefslogtreecommitdiff
path: root/src/gui_peaksearch.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-25 17:06:05 +0100
committerThomas White <taw@physics.org>2021-02-25 17:06:05 +0100
commitf1fac55c2023bb0b99a5111167d98565badf48c5 (patch)
treebec3d9bc412056f3d8ea2c451db95032eb13959e /src/gui_peaksearch.c
parent3888de614efc03abcafb57e90cd9af89d2e3046d (diff)
GUI: Factorise force_{peaks,refls}_on
This should help avoid them getting out of sync. Again.
Diffstat (limited to 'src/gui_peaksearch.c')
-rw-r--r--src/gui_peaksearch.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c
index fa63d8fa..37972e72 100644
--- a/src/gui_peaksearch.c
+++ b/src/gui_peaksearch.c
@@ -448,12 +448,7 @@ gint peaksearch_sig(GtkWidget *widget, struct crystfelproject *proj)
if ( proj->peak_params != NULL ) return FALSE;
- proj->show_peaks = 1;
- crystfel_image_view_set_show_peaks(CRYSTFEL_IMAGE_VIEW(proj->imageview),
- proj->show_peaks);
-
- w = gtk_ui_manager_get_widget(proj->ui, "/ui/mainwindow/view/peaks");
- gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(w), 1);
+ force_peaks_on(proj);
/* Take a copy of the original parameters, for reverting */
proj->original_params = proj->peak_search_params;