diff options
author | Thomas White <taw@physics.org> | 2020-03-17 17:14:19 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | 2a9d0dc3cfd239d8e2e8b3e4ef93a274a872b196 (patch) | |
tree | b0f743922b7dee17a9e5581c53d481b76f8041a2 /src | |
parent | 338b689468f1116ba17bae2f0b8c8adfb3ec7667 (diff) |
Set current algorithm initially in peak search dialog
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_peaksearch.c | 3 |
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); |