From 73c124f646e1b9d35f265706b4e746d682bdad4d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 13 May 2016 16:37:26 +0200 Subject: At first the factory is not loaded so we need to set the properties once they are loaded. --- components/package/contents/ui/Settings.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'components') diff --git a/components/package/contents/ui/Settings.qml b/components/package/contents/ui/Settings.qml index 897942d8..8e80ba0f 100644 --- a/components/package/contents/ui/Settings.qml +++ b/components/package/contents/ui/Settings.qml @@ -110,6 +110,14 @@ Rectangle { KubeFramework.AccountFactory { id: accountFactory accountId: model.accountId + onAccountLoaded: { + if (listView.currentIndex == model.index) { + accountDetails.source = accountFactory.uiPath + accountDetails.item.accountId = accountFactory.accountId + accountDetails.item.icon = accountFactory.icon + accountDetails.item.accountNam = accountFactory.name + } + } } Kirigami.Icon { -- cgit v1.2.3