gnucash master: Only reset csv importer internal state if new file is selected

Geert Janssens gjanssens at code.gnucash.org
Tue Feb 7 13:36:15 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/66660c02 (commit)
	from  https://github.com/Gnucash/gnucash/commit/0c380741 (commit)



commit 66660c02fbdafe342938c3babdfcfbf8f267cf22
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Tue Feb 7 19:36:08 2023 +0100

    Only reset csv importer internal state if new file is selected
    
    The changes from
    https://github.com/Gnucash/gnucash/commit/8ed40078b04f345e7104945f6928067c227a7740
    and
    https://github.com/Gnucash/gnucash/commit/78c8e8f3afbc8b5e65024479d9b4e382f83f6f6a
    caused the importers to reset everything in the preview page whenever opening this
    page, including when navigating back from a future page. This can be very frustrating
    if many settings were adjusted but one went back just to tweak a single one.
    
    With these changes the importer will only be reset whenever the user selects a
    different file in the file chooser. So even navigating back to the file chooser,
    but not changing files will keep the import state.



Summary of changes:
 .../csv-imp/assistant-csv-price-import.cpp         | 81 +++++++++++----------
 .../csv-imp/assistant-csv-trans-import.cpp         | 84 ++++++++++++----------
 2 files changed, 89 insertions(+), 76 deletions(-)



More information about the gnucash-patches mailing list