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);