diff options
Diffstat (limited to 'components/accounts/contents/ui')
-rw-r--r-- | components/accounts/contents/ui/AccountWizardPage.qml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml index 6c9befea..b0b33049 100644 --- a/components/accounts/contents/ui/AccountWizardPage.qml +++ b/components/accounts/contents/ui/AccountWizardPage.qml | |||
@@ -135,11 +135,13 @@ Item { | |||
135 | 135 | ||
136 | text: qsTr("Save") | 136 | text: qsTr("Save") |
137 | onClicked: { | 137 | onClicked: { |
138 | loader.item.save() | 138 | if (loader.item.valid) { |
139 | 139 | loader.item.save() | |
140 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": loader.item.accountIdentifier}); | 140 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": loader.item.accountIdentifier}); |
141 | 141 | root.done() | |
142 | root.done() | 142 | } else { |
143 | console.warn("Invalid settings."); | ||
144 | } | ||
143 | } | 145 | } |
144 | } | 146 | } |
145 | } | 147 | } |