From d4a89fddffbdc9ad45fc121100714f52a1bf0207 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 23 Jan 2018 18:22:06 +0100 Subject: Avoid unnecessary references to app --- components/accounts/qml/AccountWizard.qml | 6 +++--- views/accounts/qml/View.qml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/accounts/qml/AccountWizard.qml b/components/accounts/qml/AccountWizard.qml index 4a11ca05..9c4adbe2 100644 --- a/components/accounts/qml/AccountWizard.qml +++ b/components/accounts/qml/AccountWizard.qml @@ -39,9 +39,9 @@ Kube.Popup { Component.onCompleted: { //If we only have one account type we skip the selection if (root.availableAccountPlugins.length == 1) { - stack.push(wizardPage.createObject(app, {accountType: root.availableAccountPlugins[0]})) + stack.push(wizardPage.createObject(stack, {accountType: root.availableAccountPlugins[0]})) } else { - stack.push(mainView.createObject(app)) + stack.push(mainView.createObject(stack)) } } onCurrentItemChanged: { @@ -72,7 +72,7 @@ Kube.Popup { delegate: Kube.Button { Layout.fillWidth: true text: modelData - onClicked: stack.push(wizardPage.createObject(app, {accountType:modelData})) + onClicked: stack.push(wizardPage.createObject(stack, {accountType:modelData})) } } } diff --git a/views/accounts/qml/View.qml b/views/accounts/qml/View.qml index 9b774907..b81579ae 100644 --- a/views/accounts/qml/View.qml +++ b/views/accounts/qml/View.qml @@ -132,9 +132,9 @@ FocusScope { id: accountWizard parent: ApplicationWindow.overlay - height: app.height - width: app.width - app.sidebarWidth - x: app.sidebarWidth + height: root.height + width: root.width + x: root.mapToGlobal(root.x, root.y).x y: 0 availableAccountPlugins: root.availableAccountPlugins -- cgit v1.2.3