diff options
-rw-r--r-- | qt-ui/models.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 485015379..3a8ee4e42 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -1266,6 +1266,18 @@ void DiveComputerModel::remove(const QModelIndex& index) update(); } +void DiveComputerModel::dropWorkingList() +{ + // how do I prevent the memory leak ? +} + +void DiveComputerModel::keepWorkingList() +{ + if (dcList.dcMap != dcWorkingMap) + mark_divelist_changed(TRUE); + dcList.dcMap = dcWorkingMap; +} + /*################################################################# * # * # Yearly Statistics Model @@ -1385,15 +1397,3 @@ void YearlyStatisticsModel::update_yearly_stats() rootItem->children.append(item); } } - -void DiveComputerModel::dropWorkingList() -{ - // how do I prevent the memory leak ? -} - -void DiveComputerModel::keepWorkingList() -{ - if (dcList.dcMap != dcWorkingMap) - mark_divelist_changed(TRUE); - dcList.dcMap = dcWorkingMap; -} |