aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-25 12:24:30 +0200
committerThomas White <taw@physics.org>2020-08-25 12:31:46 +0200
commitf2f35c529e31d42927ff9d0e6a1e55d4237ee8bb (patch)
treebb138cc1cc85750c6b96785d917f0447d573b261 /src/gui_index.c
parent30a11737e799faa335d049cc9018ada08cf3442e (diff)
Read/write backend options
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index 45ae943b..278bbf9c 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -134,6 +134,7 @@ static void indexing_backend_changed_sig(GtkWidget *combo,
backend_idx = gtk_combo_box_get_active(GTK_COMBO_BOX(combo));
if ( backend_idx < 0 ) return;
+ proj->indexing_backend_selected = backend_idx;
be = &proj->backends[backend_idx];
@@ -187,7 +188,8 @@ static GtkWidget *make_backend_opts(struct crystfelproject *proj)
/* proj->indexing_backend_opts{_box} must exist before the following */
g_signal_connect(G_OBJECT(proj->indexing_backend_combo), "changed",
G_CALLBACK(indexing_backend_changed_sig), proj);
- gtk_combo_box_set_active(GTK_COMBO_BOX(proj->indexing_backend_combo), 0);
+ gtk_combo_box_set_active(GTK_COMBO_BOX(proj->indexing_backend_combo),
+ proj->indexing_backend_selected);
return box;
}