diff --git a/gnucash/import-export/qif-imp/assistant-qif-import.c b/gnucash/import-export/qif-imp/assistant-qif-import.c index 236bcea363..8c3733e862 100644 --- a/gnucash/import-export/qif-imp/assistant-qif-import.c +++ b/gnucash/import-export/qif-imp/assistant-qif-import.c @@ -172,6 +172,7 @@ struct _qifimportwindow gboolean show_doc_pages; gboolean ask_date_format; gboolean busy; + gboolean read_file_warnings; gboolean load_stop; gboolean acct_tree_found; gboolean new_book; @@ -1547,6 +1548,7 @@ gnc_ui_qif_import_intro_prepare (GtkAssistant *assistant, gpointer user_data) /* Set load stop to FALSE */ wind->load_stop = FALSE; + wind->read_file_warnings = FALSE; files_list = scm_call_2 (unload, wind->selected_file, wind->imported_files); @@ -1854,6 +1856,8 @@ gnc_ui_qif_import_load_progress_start_cb (GtkButton * button, wind->busy = FALSE; wind->load_stop = TRUE; } + else + wind->read_file_warnings = TRUE; } /* @@ -1992,7 +1996,8 @@ gnc_ui_qif_import_load_progress_start_cb (GtkButton * button, gtk_widget_set_sensitive (wind->load_pause, FALSE); wind->busy = FALSE; - if (wind->load_stop == FALSE) + + if (wind->load_stop == FALSE && wind->read_file_warnings == FALSE) { /* Auto step to next page */ gtk_assistant_set_current_page (assistant, num + 1);