mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 19:36:15 +00:00
mobile: don't call saveChangesLocal() twice on non-iOS
QMLManager::changesNeedSaving() behaves differently on iOS: it only saves locally with saveChangesLocal(), whereas all other OS save to cloud with saveChangesCloud(). Nevertheless, even for other OS saveChangesLocal() is called even though that will be called in saveChancesCloud anyway. Therefore, compile the saveChangesLocal() call in changesNeedSaving conditionally. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
6dbc9ca4b0
commit
82f6c60856
1 changed files with 2 additions and 1 deletions
|
@ -1267,8 +1267,9 @@ void QMLManager::changesNeedSaving()
|
|||
// on iOS
|
||||
// on all other platforms we just save the changes and be done with it
|
||||
mark_divelist_changed(true);
|
||||
#if defined(Q_OS_IOS)
|
||||
saveChangesLocal();
|
||||
#if !defined(Q_OS_IOS)
|
||||
#else
|
||||
saveChangesCloud(false);
|
||||
#endif
|
||||
updateAllGlobalLists();
|
||||
|
|
Loading…
Add table
Reference in a new issue