aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-17 17:14:19 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit2a9d0dc3cfd239d8e2e8b3e4ef93a274a872b196 (patch)
treeb0f743922b7dee17a9e5581c53d481b76f8041a2 /src
parent338b689468f1116ba17bae2f0b8c8adfb3ec7667 (diff)
Set current algorithm initially in peak search dialog
Diffstat (limited to 'src')
-rw-r--r--src/gui_peaksearch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c
index b641fb30..1fbafd14 100644
--- a/src/gui_peaksearch.c
+++ b/src/gui_peaksearch.c
@@ -366,7 +366,8 @@ gint peaksearch_sig(GtkWidget *widget, struct crystfelproject *proj)
#endif
g_signal_connect(G_OBJECT(combo), "changed",
G_CALLBACK(peaksearch_algo_changed), proj);
- gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0);
+ gtk_combo_box_set_active_id(GTK_COMBO_BOX(combo),
+ str_peaksearch(proj->peak_search_params.method));
proj->type_combo = combo;
gtk_widget_show_all(dialog);