diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2018-10-08 19:10:11 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-09 10:03:21 -0700 |
commit | 315a3335c2729e163490444ee1ad80844b9d8321 (patch) | |
tree | f400531aa947e468d1f70e3e7279446d1ccbf09c /mobile-widgets | |
parent | 2b3dc46c867f3275a7e36d254b958f3d3d45a60a (diff) | |
download | subsurface-315a3335c2729e163490444ee1ad80844b9d8321.tar.gz |
Mobile: mark divelist changed on no-cloud to cloud account
This simple one-liner fixes an actual bug. On switching from
a no-cloud account to a actual cloud account, the dives from
the no-cloud are added to the actual cloud account. And indeed
the dives appear correctly. However, when exiting the app
right away, these added dives are not commited to the local
storage. Simply, the divelist needs to be marked dirty.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 3bd806034..8ee19e2d0 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -677,6 +677,7 @@ successful_exit: DiveListModel::instance()->addAllDives(); appendTextToLog(QStringLiteral("%1 dives loaded after importing nocloud local storage").arg(dive_table.nr)); noCloudToCloud = false; + mark_divelist_changed(true); saveChangesLocal(); if (m_syncToCloud == false) { appendTextToLog(QStringLiteral("taking things back offline now that storage is synced")); |