From 7003a4795de7b3997156678531b04b67423b7d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sat, 4 Feb 2017 15:10:55 +0100 Subject: [PATCH] Don't includes virtual account in negative computation (for calendar warning display) --- src/view/AccountPanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/AccountPanel.cpp b/src/view/AccountPanel.cpp index 6efb093..6c8b2a7 100644 --- a/src/view/AccountPanel.cpp +++ b/src/view/AccountPanel.cpp @@ -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)