From 2f2e9da2cd18d0450fa791371922ba1844338bb6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 30 Nov 2015 10:09:46 -0800 Subject: Clear the Dive model before repopulating it Otherwise we could get duplicate dives in the dive list. Signed-off-by: Dirk Hohndel --- qt-mobile/qmlmanager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-mobile') 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); } -- cgit v1.2.3-70-g09d2