Fix a bug

This commit is contained in:
Grégory Soutadé 2010-06-28 20:46:41 +02:00
parent cac8f4b25e
commit 91de94f142

View File

@ -234,7 +234,7 @@ void AccountPanel::LoadYear(int year, bool showMonth)
std::map<int, std::vector<int> > ops ;
std::vector<int>::iterator it;
if (user->_operations[year])
if (user->_operations[year] && _tree.GetChildrenCount(_tree.GetSelection(), true))
{
if (showMonth)
ShowMonth(-1, year);