diff options
author | Thomas White <taw@physics.org> | 2020-07-03 10:30:20 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | c68488f1f82883ab025093cdcc6af4d43ce43cd5 (patch) | |
tree | 396e743c9cc52e55e6ee4c2b1aee24f34d8a8a7b /src/crystfel_gui.c | |
parent | 74df4e977320a454d65f41b1cc000fdbbbd3485e (diff) |
Special cases for stream
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r-- | src/crystfel_gui.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index ee4d2203..18c70b3f 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -863,11 +863,16 @@ int main(int argc, char *argv[]) DataTemplate *dtempl; GtkAction *w; proj.cur_frame = 0; - dtempl = data_template_new_from_file(proj.geom_filename); - if ( dtempl != NULL ) { - crystfel_image_view_set_datatemplate(CRYSTFEL_IMAGE_VIEW(proj.imageview), - dtempl); + + if ( proj.geom_filename != NULL ) { + dtempl = data_template_new_from_file(proj.geom_filename); + if ( dtempl != NULL ) { + crystfel_image_view_set_datatemplate(CRYSTFEL_IMAGE_VIEW(proj.imageview), + dtempl); + proj.dtempl = dtempl; + } } + w = gtk_ui_manager_get_action(proj.ui, "/mainwindow/view/peaks"); gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(w), proj.show_peaks); |