diff --git a/src/view/AccountPanel.cpp b/src/view/AccountPanel.cpp index 6ec1cce..ecc1663 100644 --- a/src/view/AccountPanel.cpp +++ b/src/view/AccountPanel.cpp @@ -388,7 +388,13 @@ void AccountPanel::LoadYear(int year, bool showMonth) if (!parentNode) parentNode = _tree->topLevelItem(0); - month = (_curMonth == -1) ? curDate.month()-1 : _curMonth; + if (_curMonth == -1) + { + if (_curYear == curDate.year()) + month = curDate.month()-1; + else + month = 0; + } for (it = ops[year].begin(); it != ops[year].end(); it++) {