summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-11 22:46:35 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-11 22:46:35 -0800
commitf925711185ee79081417e1e0996b5f83e77eab61 (patch)
tree7747bbf1fcc3f9e0ed4d89b45d2ea5a9a5fe7076 /qt-mobile
parentd877e13e0a83203926bf05ee64d3e9589b750aac (diff)
downloadsubsurface-f925711185ee79081417e1e0996b5f83e77eab61.tar.gz
QML UI: clear up more data when changing credentials
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qmlmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index ebef201ba..8b9e89036 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -168,6 +168,9 @@ void QMLManager::saveCloudCredentials()
getCloudURL(url);
manager()->clearAccessCache(); // remove any chached credentials
clear_git_id(); // invalidate our remembered GIT SHA
+ clear_dive_file_data();
+ DiveListModel::instance()->clear();
+ GpsListModel::instance()->clear();
openLocalThenRemote(url);
}
}