Bug 440827

Summary: Closing an account while in Ledger view will clear the account selection drop down list
Product: [Applications] kmymoney Reporter: Dawid Wróbel <me>
Component: ux-uiAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version First Reported In: 5.1.2   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In: 5.2
Sentry Crash Report:

Description Dawid Wróbel 2021-08-10 10:06:06 UTC
SUMMARY
Closing an account while in Ledger view will clear the account selection drop down list, if "Show all accounts" is not enabled. 

STEPS TO REPRODUCE
1. Make sure "Show all accounts" is disabled
2. Open an account in the ledger
3. Close the account

OBSERVED RESULT
Drop down list clears, but the account is still shown in the ledger. 

EXPECTED RESULT
Some other account should be opened up in the ledger, possibly the previously-opened one or the first in the hierarchy.
Comment 1 Thomas Baumgart 2023-08-23 14:07:37 UTC
Git commit c49a145e33da313a16bf46f1f74de3326b1b74f4 by Thomas Baumgart.
Committed on 23/08/2023 at 16:07.
Pushed by tbaumgart into branch 'master'.

Close ledger tab when account is closed
FIXED-IN: 5.2

M  +4    -0    kmymoney/kmymoney.cpp
M  +10   -4    kmymoney/views/simpleledgerview.cpp

https://invent.kde.org/office/kmymoney/-/commit/c49a145e33da313a16bf46f1f74de3326b1b74f4