summaryrefslogtreecommitdiffstats
path: root/components/accounts/contents/ui/AccountWizard.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/accounts/contents/ui/AccountWizard.qml')
-rw-r--r--components/accounts/contents/ui/AccountWizard.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml
index 56c975e5..394c3d32 100644
--- a/components/accounts/contents/ui/AccountWizard.qml
+++ b/components/accounts/contents/ui/AccountWizard.qml
@@ -44,12 +44,17 @@ Kube.Popup {
44 stack.push(mainView.createObject(app)) 44 stack.push(mainView.createObject(app))
45 } 45 }
46 } 46 }
47 onCurrentItemChanged: {
48 if (!!currentItem) {
49 currentItem.forceActiveFocus()
50 }
51 }
47 } 52 }
48 53
49 Component { 54 Component {
50 id: mainView 55 id: mainView
51 56
52 Item { 57 FocusScope {
53 Kube.Heading { 58 Kube.Heading {
54 id: heading 59 id: heading
55 text: qsTr("Select your new account type") 60 text: qsTr("Select your new account type")
@@ -67,9 +72,7 @@ Kube.Popup {
67 delegate: Kube.Button { 72 delegate: Kube.Button {
68 Layout.fillWidth: true 73 Layout.fillWidth: true
69 text: modelData 74 text: modelData
70 onClicked: { 75 onClicked: stack.push(wizardPage.createObject(app, {accountType:modelData}))
71 stack.push(wizardPage.createObject(app, {accountType:modelData}))
72 }
73 } 76 }
74 } 77 }
75 } 78 }
@@ -79,6 +82,7 @@ Kube.Popup {
79 Component { 82 Component {
80 id: wizardPage 83 id: wizardPage
81 AccountWizardPage { 84 AccountWizardPage {
85 focus: true
82 requireSetup: root.requireSetup 86 requireSetup: root.requireSetup
83 onDone: { 87 onDone: {
84 root.close() 88 root.close()