From 91de94f142b3330b9ac31c07f300331aaa9ef419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Mon, 28 Jun 2010 20:46:41 +0200 Subject: [PATCH] Fix a bug --- view/AccountPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/AccountPanel.cpp b/view/AccountPanel.cpp index 2140934..839fd57 100644 --- a/view/AccountPanel.cpp +++ b/view/AccountPanel.cpp @@ -234,7 +234,7 @@ void AccountPanel::LoadYear(int year, bool showMonth) std::map > ops ; std::vector::iterator it; - if (user->_operations[year]) + if (user->_operations[year] && _tree.GetChildrenCount(_tree.GetSelection(), true)) { if (showMonth) ShowMonth(-1, year);