From c68488f1f82883ab025093cdcc6af4d43ce43cd5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 3 Jul 2020 10:30:20 +0200 Subject: Special cases for stream --- src/gui_project.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/gui_project.c') diff --git a/src/gui_project.c b/src/gui_project.c index 280cc1be..22458daa 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -383,12 +383,14 @@ int save_project(struct crystfelproject *proj) fprintf(fh, "backend %s\n", proj->backend->name); fprintf(fh, "-----\n"); - for ( i=0; in_frames; i++ ) { - if ( proj->events[i] != NULL ) { - fprintf(fh, "%s %s\n", - proj->filenames[i], proj->events[i]); - } else { - fprintf(fh, "%s\n", proj->filenames[i]); + if ( proj->stream == NULL ) { + for ( i=0; in_frames; i++ ) { + if ( proj->events[i] != NULL ) { + fprintf(fh, "%s %s\n", + proj->filenames[i], proj->events[i]); + } else { + fprintf(fh, "%s\n", proj->filenames[i]); + } } } -- cgit v1.2.3