diff options
author | Thomas White <taw@physics.org> | 2021-11-26 15:22:19 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-11-26 15:28:22 +0100 |
commit | cc8b4303f422643e9ed4327db4680cf87bcedd0a (patch) | |
tree | f16ccd3ca2b42a6c1b8e3623af170b30de0b730e /src/crystfel_gui.c | |
parent | a509bb92bfe3ba9525e6e348a5674c6df1f17c15 (diff) |
GUI: Don't store stream filename in project
There's already some confusion between "loading a stream into the GUI"
and "adding a stream as a result". This should help resolve it, as well
as simplifying multi-stream results (coming up).
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r-- | src/crystfel_gui.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 6dd9b37d..6268d64c 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -1091,17 +1091,6 @@ int main(int argc, char *argv[]) if ( dtempl != NULL ) { proj.dtempl = dtempl; } - } else if ( proj.stream_filename != NULL ) { - - Stream *st; - st = stream_open_for_read(proj.stream_filename); - if ( st != NULL ) { - char *geom_str = stream_geometry_file(st); - if ( geom_str != NULL ) { - proj.dtempl = data_template_new_from_string(geom_str); - } - } - stream_close(st); } act = gtk_ui_manager_get_action(proj.ui, "/mainwindow/view/centre"); |