aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-03 06:22:49 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-08 20:50:05 +0100
commit3a7b8d73d88fba9c3c0bc2a215cb4bd65ba6b5b7 (patch)
tree417785f8aa54cd8e24f1c077f3fd221b99022c17 /mobile-widgets/qmlmanager.cpp
parentccace53b83f753c8ce20a8a004a5645baeff58b2 (diff)
downloadsubsurface-3a7b8d73d88fba9c3c0bc2a215cb4bd65ba6b5b7.tar.gz
Mobile: let the user know if we can't save changes
While the error that caused this to happen should be fixed, we should at least let the user know if things failed catastrophically and we can't figure out how to save their data. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 983f192be..ac1bf82d6 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1349,6 +1349,7 @@ void QMLManager::saveChangesCloud(bool forceRemoteSync)
return;
if (!m_loadFromCloud) {
+ setNotificationText(tr("Fatal error: cannot save data file. Please copy log file and report."));
appendTextToLog("Don't save dives without loading from the cloud, first.");
return;
}