aboutsummaryrefslogtreecommitdiff
path: root/src/gui_import.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-11-26 15:22:19 +0100
committerThomas White <taw@physics.org>2021-11-26 15:28:22 +0100
commitcc8b4303f422643e9ed4327db4680cf87bcedd0a (patch)
treef16ccd3ca2b42a6c1b8e3623af170b30de0b730e /src/gui_import.c
parenta509bb92bfe3ba9525e6e348a5674c6df1f17c15 (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/gui_import.c')
-rw-r--r--src/gui_import.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui_import.c b/src/gui_import.c
index 3e432075..f340dd5f 100644
--- a/src/gui_import.c
+++ b/src/gui_import.c
@@ -277,7 +277,6 @@ int load_stream(struct crystfelproject *proj, char *stream_filename)
/* Use the user's nominated DataTemplate over the one from the stream.
* If it doesn't match, better that things break earlier. */
add_frames_from_stream(st, proj->dtempl, proj);
- proj->stream_filename = stream_filename;
stream_close(st);
result_name = safe_basename(stream_filename);
@@ -540,11 +539,6 @@ gint import_sig(GtkWidget *widget, struct crystfelproject *proj)
FALSE, FALSE, 4.0);
ctx->stream_chooser = gtk_file_chooser_button_new("Select stream file",
GTK_FILE_CHOOSER_ACTION_OPEN);
- if ( proj->stream_filename != NULL ) {
- gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(ctx->stream_chooser),
- proj->stream_filename);
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(ctx->stream), TRUE);
- }
gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(ctx->stream_chooser),
TRUE, TRUE, 2.0);