mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
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.
This commit is contained in:
parent
06b6d60f5b
commit
dd429aaa0c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user