From: John Darrington Date: Tue, 17 Nov 2020 17:27:38 +0000 (+0100) Subject: Only reset the separators page when going forwards X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beadbd3c7f103437df72660d9147c8faf1a6d03a;p=pspp Only reset the separators page when going forwards --- 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));