gnucash master: Fixup csv price import assistant reset
Geert Janssens
gjanssens at code.gnucash.org
Tue Feb 7 15:16:38 EST 2023
Updated via https://github.com/Gnucash/gnucash/commit/76d742c6 (commit)
from https://github.com/Gnucash/gnucash/commit/66660c02 (commit)
commit 76d742c6e3b738cf995ebeefa88ac3c19421dd2f
Author: Geert Janssens <geert at kobaltwit.be>
Date: Tue Feb 7 21:16:32 2023 +0100
Fixup csv price import assistant reset
A few lines were missing in my previous commit
diff --git a/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp b/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp
index 31a376736..0a8b3e359 100644
--- a/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp
+++ b/gnucash/import-export/csv-imp/assistant-csv-price-import.cpp
@@ -1877,6 +1877,9 @@ CsvImpPriceAssist::assist_preview_page_prepare ()
// set over_write to false as default
price_imp->over_write (false);
+
+ /* Disable the "Next" Assistant Button */
+ gtk_assistant_set_page_complete (csv_imp_asst, preview_page, false);
}
catch (std::ifstream::failure& e)
{
@@ -1896,8 +1899,7 @@ CsvImpPriceAssist::assist_preview_page_prepare ()
gtk_assistant_previous_page (csv_imp_asst);
else
{
- /* Disable the "Next" Assistant Button */
- gtk_assistant_set_page_complete (csv_imp_asst, preview_page, false);
+ m_final_file_name = m_fc_file_name;
/* Load the data into the treeview. */
g_idle_add ((GSourceFunc)csv_imp_preview_queue_rebuild_table, this);
Summary of changes:
gnucash/import-export/csv-imp/assistant-csv-price-import.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list