From 6ac4fe7b184a7ff2d3442b2d86ac7dfa56afee02 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 3 Mar 2016 06:33:00 -0800 Subject: QML UI: show notification for saving dives to cloud as well Fixes #1014 Signed-off-by: Dirk Hohndel --- qt-mobile/qml/main.qml | 1 - qt-mobile/qmlmanager.cpp | 4 +++- 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); -- cgit v1.2.3-70-g09d2