From 801ce01585a2314e95c1aeee2385b04b9a0ceda5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 8 Feb 2016 11:12:43 -0800 Subject: 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 --- qt-mobile/qmlmanager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qt-mobile') 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) -- cgit v1.2.3-70-g09d2