aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-08 11:12:43 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-08 11:12:43 -0800
commit801ce01585a2314e95c1aeee2385b04b9a0ceda5 (patch)
tree4e1cac8708761621f6b1bf2490e3a5e78d891434 /qt-mobile
parentc1b3de61902ac392ffe2597a11a89664c9499304 (diff)
downloadsubsurface-801ce01585a2314e95c1aeee2385b04b9a0ceda5.tar.gz
Always sync with cloud server when updating backend data
It makes no sense to only do this the very first time we connect to a cloud storage account. The existing code only happened to work because we incorrectly tried to maintain the loadFromCloud status across restarts of the application. So one bug hid another bug. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qmlmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index bce25795d..c41c2411b 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -245,8 +245,7 @@ void QMLManager::retrieveUserid()
s.setValue("subsurface_webservice_uid", prefs.userid);
s.sync();
}
- if (!loadFromCloud())
- loadDivesWithValidCredentials();
+ loadDivesWithValidCredentials();
}
void QMLManager::loadDiveProgress(int percent)