From 78eacb6a0c90c7832d0e8e68b7a97fe7b0ea53d8 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Thu, 7 Jan 2016 20:49:29 +0100 Subject: [PATCH] mobile: allow save when local store is actual When starting ssrf-mobile, and the local divelist is identical to the cloud version (so same sha1), a save of local modifications to the cloud should be possible. This fix enables this by pretending that a suppressed load from cloud on start is still a valid load from cloud. Signed-off-by: Jan Mulder Signed-off-by: Dirk Hohndel --- qt-mobile/qmlmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index b3c5840b4..e9682d623 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -276,6 +276,7 @@ void QMLManager::loadDivesWithValidCredentials() if (check_git_sha(fileNamePrt.data()) == 0) { qDebug() << "local cache was current, no need to modify dive list"; appendTextToLog("Cloud sync shows local cache was current"); + setLoadFromCloud(true); return; } clear_dive_file_data();