From dd429aaa0c49f997d5358d2ef7202024181f54f5 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Wed, 16 Aug 2023 15:29:35 -0500 Subject: [PATCH] Present warnings from the file load step. The price import will now throw warnings if there are invalid prices. The previous logic would 'auto-next' in this case, only holding if the parse-file phase threw warnings. This change insures that these warnings are seen. --- gnucash/import-export/qif-imp/assistant-qif-import.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);