summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mobile-widgets/qmlmanager.cpp6
-rw-r--r--mobile-widgets/qmlmanager.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index d28fa11ae..08882c324 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -273,6 +273,11 @@ void QMLManager::openLocalThenRemote(QString url)
appendTextToLog(QStringLiteral("have cloud credentials, trying to connect"));
tryRetrieveDataFromBackend();
}
+ updateAllGlobalLists();
+}
+
+void QMLManager::updateAllGlobalLists()
+{
buddyModel.updateModel(); emit buddyListChanged();
suitModel.updateModel(); emit suitListChanged();
divemasterModel.updateModel(); emit divemasterListChanged();
@@ -1101,6 +1106,7 @@ void QMLManager::changesNeedSaving()
#elif !defined(Q_OS_IOS)
saveChangesCloud(false);
#endif
+ updateAllGlobalLists();
}
void QMLManager::openNoCloudRepo()
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 17762e0a2..cd2efdb35 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -243,6 +243,7 @@ private:
bool m_libdcLog;
bool m_developer;
bool m_btEnabled;
+ void updateAllGlobalLists();
#if defined(Q_OS_ANDROID)
QString appLogFileName;