Only reset the separators page when going forwards
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 17 Nov 2020 17:27:38 +0000 (18:27 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 17 Nov 2020 17:27:38 +0000 (18:27 +0100)
src/ui/gui/psppire-import-textfile.c

index c6fdfccd527fdc936b7835f2fb81297e1a0848c2..5b4eb6576b80a99d9b2debfe9191406ac944b0eb 100644 (file)
@@ -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));