Skip to content
Snippets Groups Projects
Commit a70e1308 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

wizardview: temporary fix for page arrangement when deleting the last account

When deleting the last account, wizard view's page can be incorrect
if the user has created an account before.

Gitlab: #43
Change-Id: I82055456a9df608d88b81fc51049b0623c6d0a35
parent b07f7afe
Branches
Tags
No related merge requests found
...@@ -65,6 +65,7 @@ ApplicationWindow { ...@@ -65,6 +65,7 @@ ApplicationWindow {
function onNoAccountIsAvailable() { function onNoAccountIsAvailable() {
mainViewLoader.setSource("") mainViewLoader.setSource("")
wizardViewForApplicationStart.changePageQML(0)
wizardView.show() wizardView.show()
} }
} }
...@@ -79,6 +80,8 @@ ApplicationWindow { ...@@ -79,6 +80,8 @@ ApplicationWindow {
minimumHeight: 600 minimumHeight: 600
WizardView { WizardView {
id: wizardViewForApplicationStart
anchors.fill: parent anchors.fill: parent
onNeedToShowMainViewWindow: { onNeedToShowMainViewWindow: {
mainViewLoader.newAddedAccountIndex = accountIndex mainViewLoader.newAddedAccountIndex = accountIndex
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment