aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crystfelindexingopts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crystfelindexingopts.c b/src/crystfelindexingopts.c
index 2f4344a7..d908b5e7 100644
--- a/src/crystfelindexingopts.c
+++ b/src/crystfelindexingopts.c
@@ -643,9 +643,11 @@ void crystfel_indexing_opts_set_cell_file(CrystFELIndexingOpts *opts,
if ( cell_file != NULL ) {
gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(opts->cell_chooser),
cell_file);
+ opts->cell_file = strdup(cell_file);
} else {
gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(opts->cell_chooser),
"(null)");
+ opts->cell_file = NULL;
}
}