diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-12 22:14:17 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-12 22:14:17 -0800 |
commit | 692719f230842b247dad9704e1d2e77d2f724305 (patch) | |
tree | 7231ea6b6ef6b3b7bbfec0734810e13d2c58de07 | |
parent | e5e5ab7480655e7913905de1c7f3aa929b4c54d1 (diff) | |
download | subsurface-692719f230842b247dad9704e1d2e77d2f724305.tar.gz |
QML UI: when saving edits, really only save them locally
This should have been obvious. Without explicitly asking for only local
git activity, it will connect to the remote.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index 1539c569c..a772e0926 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -573,8 +573,10 @@ QString QMLManager::commitChanges(QString diveId, QString date, QString location // stored - so we need to store this to the local cache qDebug() << "save dives to local cache"; prefs.cloud_background_sync = false; + prefs.git_local_only = true; saveChanges(); prefs.cloud_background_sync = true; + prefs.git_local_only = false; } return notes; } |