aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-07 15:14:52 +0200
committerThomas White <taw@physics.org>2020-09-07 17:11:14 +0200
commit0aa73643db0e345f9df397a88d5cd59f1c665214 (patch)
treed43ee9c4fc8bf07c45b5208b767bcb4ea867bdda /src
parent45bd7344d1afe460177b97d7a7fc87944ec7812b (diff)
crystfel_indexing_opts_set_cell_file: Also set iv->cell_file
Missed during 4bb4779998.
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;
}
}