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>
This commit is contained in:
Dirk Hohndel 2016-04-30 06:21:55 -07:00
parent 4ad73fb807
commit 4a2a0a426e

View file

@ -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
}