mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:43:23 +00:00
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>
This commit is contained in:
parent
2b3dc46c86
commit
315a3335c2
1 changed files with 1 additions and 0 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Reference in a new issue