aboutsummaryrefslogtreecommitdiff
path: root/src/gui_project.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_project.c')
-rw-r--r--src/gui_project.c14
1 files changed, 8 insertions, 6 deletions
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; i<proj->n_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; i<proj->n_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]);
+ }
}
}