From 315a3335c2729e163490444ee1ad80844b9d8321 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Mon, 8 Oct 2018 19:10:11 +0200 Subject: 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 --- mobile-widgets/qmlmanager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets') 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")); -- cgit v1.2.3-70-g09d2