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 <jlmulder@xs4all.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Jan Mulder 2016-01-07 20:49:29 +01:00 committed by Dirk Hohndel
parent 624e44e73d
commit 78eacb6a0c

View file

@ -276,6 +276,7 @@ void QMLManager::loadDivesWithValidCredentials()
if (check_git_sha(fileNamePrt.data()) == 0) { if (check_git_sha(fileNamePrt.data()) == 0) {
qDebug() << "local cache was current, no need to modify dive list"; qDebug() << "local cache was current, no need to modify dive list";
appendTextToLog("Cloud sync shows local cache was current"); appendTextToLog("Cloud sync shows local cache was current");
setLoadFromCloud(true);
return; return;
} }
clear_dive_file_data(); clear_dive_file_data();