aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-03 06:33:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-03 06:33:00 -0800
commit6ac4fe7b184a7ff2d3442b2d86ac7dfa56afee02 (patch)
tree2351656e8890e6d0fe958970099401ffb6b06423
parentc5153fbc10d23ab2e83879f4d262b682233dc97d (diff)
downloadsubsurface-6ac4fe7b184a7ff2d3442b2d86ac7dfa56afee02.tar.gz
QML UI: show notification for saving dives to cloud as well
Fixes #1014 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-mobile/qml/main.qml1
-rw-r--r--qt-mobile/qmlmanager.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index 07caa4189..314bba900 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -25,7 +25,6 @@ MobileComponents.ApplicationWindow {
notification.hideNotification();
}
}
-
sharedNotificationComponent.show
}
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index 00f3829aa..94344f9f3 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -624,11 +624,13 @@ void QMLManager::saveChanges()
return;
}
+ setAccessingCloud(true);
if (save_dives(fileName.toUtf8().data())) {
appendTextToLog(get_error_string());
+ setAccessingCloud(false);
return;
}
-
+ setAccessingCloud(false);
appendTextToLog("Updated dive list saved.");
set_filename(fileName.toUtf8().data(), true);
mark_divelist_changed(false);