gnucash stable: Bug 799528 - Crash on account deletion (edit)

John Ralls jralls at code.gnucash.org
Tue Mar 4 15:03:54 EST 2025


Updated	 via  https://github.com/Gnucash/gnucash/commit/bc7fafd4 (commit)
	from  https://github.com/Gnucash/gnucash/commit/f3b08dde (commit)



commit bc7fafd4ad331b5afd46775ffcf7ae172dc41bb1
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Mar 4 11:57:17 2025 -0800

    Bug 799528 - Crash on account deletion (edit)
    
    New function xaccAccountDeleteAllTransactions.
    
    Delete all transactions before deleting the account; simply deleting the
    splits during account destruction isn't safe. In the particular case of an
    imbalance account the transaction commit after deleting a split just makes
    a new one.



Summary of changes:
 gnucash/gnome/gnc-plugin-page-account-tree.cpp | 11 +++++++++++
 libgnucash/engine/Account.cpp                  | 13 +++++++++++++
 libgnucash/engine/Account.h                    |  4 ++++
 3 files changed, 28 insertions(+)



More information about the gnucash-patches mailing list