aboutsummaryrefslogtreecommitdiff
path: root/src/crystfel_gui.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-07-02 16:44:04 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:44 +0200
commit6d5c80f94fdf613e37559861800600c1bffd5449 (patch)
tree1c343e76f876c06da42e0dc1a509beb389150e0e /src/crystfel_gui.c
parent7a1043dc12309e7bc5fcaa3594033341a67185e0 (diff)
Store the actual DataTemplate in GUI project struct
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r--src/crystfel_gui.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index c3395534..cf1e483e 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -255,13 +255,17 @@ static void finddata_response_sig(GtkWidget *dialog, gint resp,
g_free(proj->geom_filename);
proj->geom_filename = geom_filename;
+ data_template_free(proj->dtempl);
+ proj->dtempl = dtempl;
+
g_free(proj->data_top_folder);
proj->data_top_folder = g_file_get_path(top);
crystfel_image_view_set_datatemplate(CRYSTFEL_IMAGE_VIEW(proj->imageview),
- dtempl);
+ proj->dtempl);
- add_files(proj, top, proj->data_search_pattern, dtempl);
+ add_files(proj, top, proj->data_search_pattern,
+ proj->dtempl);
g_object_unref(top);