From 16020ae2a896633bc197cb3aca624c72329dd994 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Mon, 8 Feb 2016 10:15:25 +0300 Subject: [PATCH] Wizard: "next button" visibility in backward direction fixed --- wizard/WizardMain.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wizard/WizardMain.qml b/wizard/WizardMain.qml index 6b25be1d..eeefbf17 100644 --- a/wizard/WizardMain.qml +++ b/wizard/WizardMain.qml @@ -65,6 +65,8 @@ Rectangle { } function handlePageChanged() { + var nextButtonVisible = pages[currentPage] !== optionsPage; + nextButton.visible = nextButtonVisible; switch (pages[currentPage]) { case passwordPage: // disable "next" button until passwords match @@ -85,8 +87,7 @@ Rectangle { // nextButton.enabled = false; break default: - var nextButtonVisible = pages[currentPage] !== optionsPage; - //nextButton.visible = nextButton.enabled = nextButtonVisible; + } }