aboutsummaryrefslogtreecommitdiff
path: root/src/gui_project.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_project.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_project.c')
-rw-r--r--src/gui_project.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui_project.c b/src/gui_project.c
index 6bda5d8e..42c28df4 100644
--- a/src/gui_project.c
+++ b/src/gui_project.c
@@ -565,7 +565,7 @@ static void handle_var(const char *key, const char *val,
if ( strncmp(key, "stream.", 7) == 0 ) {
parse_stream_opt(key, val, &proj->indexing_params);
} else if ( strcmp(key, "stream") == 0 ) {
- proj->stream_filename = strdup(val);
+ /* Ignore, kept for backwards compatability */
}
if ( strcmp(key, "search_pattern") == 0 ) {
@@ -918,9 +918,6 @@ int save_project(struct crystfelproject *proj)
}
fprintf(fh, "search_pattern %s\n",
str_matchtype(proj->data_search_pattern));
- if ( proj->stream_filename != NULL ) {
- fprintf(fh, "stream %s\n", proj->stream_filename);
- }
fprintf(fh, "peak_search_params.method %s\n",
str_peaksearch(proj->peak_search_params.method));
@@ -1199,7 +1196,6 @@ int default_project(struct crystfelproject *proj)
proj->peak_params = NULL;
proj->data_top_folder = NULL;
proj->data_search_pattern = 0;
- proj->stream_filename = NULL;
proj->dtempl = NULL;
proj->cur_image = NULL;
proj->indexing_opts = NULL;