diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-18 09:25:24 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-18 09:25:24 -0700 |
commit | f780a56847f215ffdfdf7712f07298b8252150b1 (patch) | |
tree | 7670f42d94bde731a884a704c45a5b4c9482be5f /qt-ui/models.cpp | |
parent | 7e64e9a3a936a25f323e4936d61b0f15c5975074 (diff) | |
download | subsurface-f780a56847f215ffdfdf7712f07298b8252150b1.tar.gz |
Clean up the last merge
While the code is correct, splitting the class like this is silly and will
confuse me later.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-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; -} |