Don't includes virtual account in negative computation (for calendar warning display)
This commit is contained in:
parent
d046f4e399
commit
7003a4795d
|
@ -629,7 +629,7 @@ void AccountPanel::UpdateStats()
|
|||
{
|
||||
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;
|
||||
break;
|
||||
|
@ -646,7 +646,7 @@ void AccountPanel::UpdateStats()
|
|||
|
||||
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;
|
||||
|
||||
if (curAccountAmounts[i][intIt->first] < minimalValue)
|
||||
|
|
Loading…
Reference in New Issue
Block a user