diff options
Diffstat (limited to 'qt-models/yearlystatisticsmodel.cpp')
-rw-r--r-- | qt-models/yearlystatisticsmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/yearlystatisticsmodel.cpp b/qt-models/yearlystatisticsmodel.cpp index 9cbb19a1d..c83a803c2 100644 --- a/qt-models/yearlystatisticsmodel.cpp +++ b/qt-models/yearlystatisticsmodel.cpp @@ -187,7 +187,7 @@ void YearlyStatisticsModel::update_yearly_stats() month++; } rootItem->children.append(item); - item->parent = rootItem; + item->parent = rootItem.get(); } @@ -199,7 +199,7 @@ void YearlyStatisticsModel::update_yearly_stats() iChild->parent = item; } rootItem->children.append(item); - item->parent = rootItem; + item->parent = rootItem.get(); } /* Show the statistic sorted by dive type */ @@ -213,6 +213,6 @@ void YearlyStatisticsModel::update_yearly_stats() iChild->parent = item; } rootItem->children.append(item); - item->parent = rootItem; + item->parent = rootItem.get(); } } |