From 0aa73643db0e345f9df397a88d5cd59f1c665214 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 7 Sep 2020 15:14:52 +0200 Subject: crystfel_indexing_opts_set_cell_file: Also set iv->cell_file Missed during 4bb4779998. --- src/crystfelindexingopts.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- cgit v1.2.3