From a49ce21fbecccd2efe1db10a9b7abb926f796bf2 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 26 Aug 2015 15:18:01 +0200 Subject: [PATCH] Adding a machine now hides if there are no more pages --- resources/qml/WizardPages/AddMachine.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/qml/WizardPages/AddMachine.qml b/resources/qml/WizardPages/AddMachine.qml index 39dfd2414d..5491b5ad0b 100644 --- a/resources/qml/WizardPages/AddMachine.qml +++ b/resources/qml/WizardPages/AddMachine.qml @@ -274,6 +274,11 @@ ColumnLayout { elementRoot.currentPage += 1 } + + if (elementRoot.getPageCount() == elementRoot.currentPage) + { + elementRoot.visible = false + } } } }