diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-30 10:09:46 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-30 10:09:46 -0800 |
commit | 2f2e9da2cd18d0450fa791371922ba1844338bb6 (patch) | |
tree | 4f774b1f37a1f9ad7546896f0d16088b26a77833 /qt-mobile/qmlmanager.cpp | |
parent | 9d6225831650dd9c6331763d29b392bc2741ae4e (diff) | |
download | subsurface-2f2e9da2cd18d0450fa791371922ba1844338bb6.tar.gz |
Clear the Dive model before repopulating it
Otherwise we could get duplicate dives in the dive list.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index cb91df2ad..9d44fea91 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -117,6 +117,7 @@ void QMLManager::loadDives() int i; struct dive *d; + DiveListModel::instance()->clear(); for_each_dive(i, d) { DiveListModel::instance()->addDive(d); } |