summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/kinvestmentview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/views/kinvestmentview.cpp')
-rw-r--r--kmymoney2/views/kinvestmentview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmymoney2/views/kinvestmentview.cpp b/kmymoney2/views/kinvestmentview.cpp
index d6ebb1a..7fe7500 100644
--- a/kmymoney2/views/kinvestmentview.cpp
+++ b/kmymoney2/views/kinvestmentview.cpp
@@ -217,7 +217,7 @@ bool KInvestmentView::slotSelectAccount(const TQString& id, const TQString& tran
// if a stock account is selected, we show the
// the corresponding tqparent (investment) account
if(d->m_account.isInvest()) {
- d->m_account = MyMoneyFile::instance()->account(d->m_account.tqparentAccountId());
+ d->m_account = MyMoneyFile::instance()->account(d->m_account.parentAccountId());
}
// TODO if we don't have an investment account, then we should switch to the ledger view
d->m_newAccountLoaded = true;