From 10ca6674030bb19502a4c55133ae45dc873cb10c Mon Sep 17 00:00:00 2001
From: Dirk Hohndel <dirk@hohndel.org>
Date: Mon, 8 Feb 2016 11:14:11 -0800
Subject: Sync load from cloud status when changing cloud storage accounts

Since this variable is specific to the cloud credentials in use, we need
to reset it when we change credentials.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
---
 qt-mobile/qmlmanager.cpp | 1 +
 1 file changed, 1 insertion(+)

(limited to 'qt-mobile')

diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index c41c2411b..d720be61e 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -153,6 +153,7 @@ void QMLManager::saveCloudCredentials()
 	if (cloudCredentialsChanged) {
 		free(prefs.userid);
 		prefs.userid = NULL;
+		syncLoadFromCloud();
 		tryRetrieveDataFromBackend();
 	}
 }
-- 
cgit v1.2.3-70-g09d2