gnucash stable: [gnc-plugin-page-report.cpp] save initial_report instead of cur_report

Christopher Lam clam at code.gnucash.org
Sat Aug 22 00:51:16 EDT 2026


Updated	 via  https://github.com/Gnucash/gnucash/commit/80c442da (commit)
	from  https://github.com/Gnucash/gnucash/commit/eaa2e6db (commit)



commit 80c442dad342a73677e1a6060a73ef5b597185c9
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Aug 15 22:32:23 2026 +0800

    [gnc-plugin-page-report.cpp] save initial_report instead of cur_report
    
    When the tab navigates from initial_report to another report via
    clicking, it is sensible to save the initial report instead of the
    current report. This was the original intention of the initial_report
    struct member.
    
    Note this will cause a behaviour change. If a report tab is created,
    and the user clicks through this report into a subreport, the original
    report will be saved/restored instead of the current report. This was
    the original intention of the initial_report object.
    
    In practice the behaviour change is less lossy; previously if a report
    tab was generated and subreports instantiated, the quit/load mechanism
    would reload the current_report and the initial_report would be lost,
    and it would have been impossible to revert to the initial_rpeort.
    
    With this change, the initial_report is restored instead of the
    current_report, and the user may still drill down into subsequent
    subreports as desired.



Summary of changes:
 gnucash/gnome/gnc-plugin-page-report.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)



More information about the gnucash-patches mailing list