From beadbd3c7f103437df72660d9147c8faf1a6d03a Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 17 Nov 2020 18:27:38 +0100 Subject: [PATCH] Only reset the separators page when going forwards --- src/ui/gui/psppire-import-textfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-import-textfile.c b/src/ui/gui/psppire-import-textfile.c index c6fdfccd52..5b4eb6576b 100644 --- a/src/ui/gui/psppire-import-textfile.c +++ b/src/ui/gui/psppire-import-textfile.c @@ -616,8 +616,11 @@ reset_separators_page (PsppireImportAssistant *ia) /* Called just before the separators page becomes visible in the assistant. */ static void -prepare_separators_page (PsppireImportAssistant *ia) +prepare_separators_page (PsppireImportAssistant *ia, GtkWidget *new_page, enum IMPORT_ASSISTANT_DIRECTION dir) { + if (dir != IMPORT_ASSISTANT_FORWARDS) + return; + gtk_tree_view_set_model (GTK_TREE_VIEW (ia->fields_tree_view), GTK_TREE_MODEL (ia->delimiters_model)); -- 2.30.2