[PATCH] mobile: allow save when local store is actual
Jan Mulder
jlmulder at xs4all.nl
Thu Jan 7 12:01:33 PST 2016
When starting ssrf-mobile, and the local divelist is identical to the
cloud version (so same sha1), a save of local modifcations 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 at xs4all.nl>
---
qt-mobile/qmlmanager.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index 00f8b5d..d25d885 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -275,6 +275,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();
--
2.7.0
best,
--jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160107/79cc9f7b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PATCH-mobile-allow-save-when-local-store-is-actual.patch
Type: text/x-patch
Size: 1092 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20160107/79cc9f7b/attachment.bin>
More information about the subsurface
mailing list