summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-30 06:21:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-30 09:46:01 -0700
commit4a2a0a426e5249a532bb15879c42325068b13194 (patch)
tree73b41d93b4627abc67afe54521c8b2395cda3071 /mobile-widgets/qmlmanager.cpp
parent4ad73fb80756eb7509efd19962994ebfeb2a219b (diff)
downloadsubsurface-4a2a0a426e5249a532bb15879c42325068b13194.tar.gz
Fix logic for when to mark dive list as changed
Since saving checks if there are changes, we have to always mark the dive list as changed before asking for the changes to be saved. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 416130d98..8a09dc212 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -855,11 +855,10 @@ void QMLManager::changesNeedSaving()
// to be reasonably fast), but don't save at all (and only remember that we need to save things
// on iOS
// on all other platforms we just save the changes and be done with it
-#if defined(Q_OS_IOS)
mark_divelist_changed(true);
-#elif defined(Q_OS_ANDROID)
+#if defined(Q_OS_ANDROID)
saveChangesLocal();
-#else
+#elif !defined(Q_OS_IOS)
saveChangesCloud(false);
#endif
}