mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
4ad73fb807
commit
4a2a0a426e
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue