Bug 421307

Summary: Account context menu's Reconcile option opens incorrect ledger
Product: [Applications] kmymoney Reporter: Robert Szczesiak <dev.rszczesiak>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: me
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.1.0

Description Robert Szczesiak 2020-05-10 22:09:45 UTC
SUMMARY
Selecting the 'Reconcile...' option from account's context menu in the Accounts view opens ledger of the last account viewed in the Ledgers view, not of the account selected in the Accounts view.

STEPS TO REPRODUCE
1. Go to the Ledgers view and select any account from the drop-down list at the top. Let's call it Account A.
2. Go to the Accounts view and right-click any user-defined account other than Account A. Let's call it Account B. 
3. Select the 'Reconcile...' option from the context menu.

OBSERVED RESULT
Reconciliation Wizard starts on top of the Ledgers view. The acount selected in the drop-down list is still Account A.

EXPECTED RESULT
The reconciliation process should start for Account B selected in the Accounts view instead of Account A previously viewed in the Ledgers view.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2
Comment 1 Thomas Baumgart 2020-05-14 17:37:46 UTC
Git commit 3f623b353c7c18f5ef673842389161374d1e97d5 by Thomas Baumgart, on behalf of Robert Szczesiak.
Committed on 14/05/2020 at 17:37.
Pushed by tbaumgart into branch '5.0'.

Fix Account context menu's Reconcile option opens incorrect ledger

Summary:
Selecting the 'Reconcile...' option from account's context menu in the
Accounts view would open ledger of the last account viewed in the
Ledgers view, not of the account selected in the Accounts view.

This commit fixes the issue so that the 'Reconcile...' option opens
correct ledger.
FIXED-IN: 5.0.9

Reviewers: tbaumgart

Reviewed By: tbaumgart

Tags: #kmymoney

Differential Revision: https://phabricator.kde.org/D29614

M  +5    -3    kmymoney/views/kgloballedgerview.cpp

https://commits.kde.org/kmymoney/3f623b353c7c18f5ef673842389161374d1e97d5