summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-08-12 15:01:39 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 15:24:14 -0700
commita3bdf49b84d8a30a22e05bc965e98f5e7914f637 (patch)
treea600baf129c53023ad061b8d55eda6308b60bed6 /qt-mobile/qmlmanager.cpp
parent8d03d264807930b110f3f3f62f5fd42887f80e3e (diff)
downloadsubsurface-a3bdf49b84d8a30a22e05bc965e98f5e7914f637.tar.gz
QML UI: Clear divelist model before starting new dive
When user clicks on AddDive, we should clear the model. Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp2
1 files changed, 1 insertions, 1 deletions
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