summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/statistics/statisticswidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/statistics/statisticswidget.cpp b/qt-ui/statistics/statisticswidget.cpp
index 6dafba606..a812cffde 100644
--- a/qt-ui/statistics/statisticswidget.cpp
+++ b/qt-ui/statistics/statisticswidget.cpp
@@ -26,7 +26,10 @@ void YearlyStatisticsWidget::modelRowsInserted(const QModelIndex &index, int fir
void YearlyStatisticsWidget::modelDataChanged(const QModelIndex &topLeft, const QModelIndex& bottomRight)
{
- // stub
+ Q_UNUSED(topLeft);
+ Q_UNUSED(bottomRight);
+ scene()->clear();
+ modelRowsInserted(QModelIndex(),0,m_model->rowCount()-1);
}
void YearlyStatisticsWidget::resizeEvent(QResizeEvent *event)