Don't includes virtual account in negative computation (for calendar warning display)

This commit is contained in:
Grégory Soutadé 2017-02-04 15:10:55 +01:00
parent d046f4e399
commit 7003a4795d
1 changed files with 2 additions and 2 deletions

View File

@ -629,7 +629,7 @@ void AccountPanel::UpdateStats()
{ {
for (intIt=curAccountAmounts[0].begin(); intIt!=curAccountAmounts[0].end(); intIt++) for (intIt=curAccountAmounts[0].begin(); intIt!=curAccountAmounts[0].end(); intIt++)
{ {
if (!user->GetAccount(intIt->first).hidden) if (!user->GetAccount(intIt->first).hidden && !user->GetAccount(intIt->first)._virtual)
{ {
minStartAccount = intIt->first; minStartAccount = intIt->first;
break; break;
@ -646,7 +646,7 @@ void AccountPanel::UpdateStats()
for (intIt=curAccountAmounts[i].begin(); intIt!=curAccountAmounts[i].end(); intIt++) for (intIt=curAccountAmounts[i].begin(); intIt!=curAccountAmounts[i].end(); intIt++)
{ {
if (user->GetAccount(intIt->first).hidden) if (user->GetAccount(intIt->first).hidden || user->GetAccount(intIt->first)._virtual)
continue; continue;
if (curAccountAmounts[i][intIt->first] < minimalValue) if (curAccountAmounts[i][intIt->first] < minimalValue)