From a3bdf49b84d8a30a22e05bc965e98f5e7914f637 Mon Sep 17 00:00:00 2001 From: Grace Karanja Date: Wed, 12 Aug 2015 15:01:39 +0300 Subject: QML UI: Clear divelist model before starting new dive When user clicks on AddDive, we should clear the model. Signed-off-by: Grace Karanja --- qt-mobile/qmlmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-mobile') diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index 69282ee90..763de1b46 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -129,7 +129,7 @@ void QMLManager::saveChanges() void QMLManager::addDive() { - + DiveListModel::instance()->clearDives(); } bool QMLManager::saveCloudPassword() const -- cgit v1.2.3-70-g09d2