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>
This commit is contained in:
Dirk Hohndel 2016-02-08 11:12:43 -08:00
parent c1b3de6190
commit 801ce01585

View file

@ -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)