Commit 8316cdad authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

BUG: 305182

Use the same logic for sub-accounts as for main accounts when
they are closed but should be shown in the account selection process.
(cherry picked from commit 138a8629)
parent 9645baff
......@@ -436,8 +436,10 @@ int AccountSet::loadSubAccounts(kMyMoneyAccountSelector* selector, QTreeWidgetIt
if (acc.isInvest() && !KMyMoneyGlobalSettings::expertMode())
continue;
if (includeAccount(acc)
&& !acc.isClosed()) {
//this will include an account if it matches the account type and
//if it is still open or it has been set to show closed accounts
if (includeAccount(acc)
&& (!isHidingClosedAccounts() || !acc.isClosed())) {
QString tmpKey;
tmpKey = key + MyMoneyFile::AccountSeperator + acc.name();
++count;
......
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