Commit 3f623b35 authored by Robert Szczesiak's avatar Robert Szczesiak Committed by Thomas Baumgart
Browse files

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.

BUG: 421307
FIXED-IN: 5.0.9

Reviewers: tbaumgart

Reviewed By: tbaumgart

Tags: #kmymoney

Differential Revision: https://phabricator.kde.org/D29614
parent 7000ad41
......@@ -1959,10 +1959,12 @@ void KGlobalLedgerView::slotStartReconciliation()
Q_D(KGlobalLedgerView);
// we cannot reconcile standard accounts
if (!MyMoneyFile::instance()->isStandardAccount(d->m_currentAccount.id()))
if (!MyMoneyFile::instance()->isStandardAccount(d->m_currentAccount.id())) {
emit selectByObject(d->m_currentAccount, eView::Intent::SynchronizeAccountInLedgersView);
emit selectByObject(d->m_currentAccount, eView::Intent::StartEnteringOverdueScheduledTransactions);
// asynchronous call to KScheduledView::slotEnterOverdueSchedules is made here
// after that all activity should be continued in KGlobalLedgerView::slotContinueReconciliation()
// asynchronous call to KScheduledView::slotEnterOverdueSchedules is made here
// after that all activity should be continued in KGlobalLedgerView::slotContinueReconciliation()
}
}
void KGlobalLedgerView::slotFinishReconciliation()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment