Prevent wizard pages from closing when they are "accepted" by pressing return.

Also removes some code replication in wizard pages.
CURA-1354
This commit is contained in:
fieldOfView 2016-04-25 13:51:22 +02:00
parent 134867f833
commit cde23edfed
4 changed files with 5 additions and 49 deletions

View file

@ -71,9 +71,7 @@ Item
anchors.left: parent.width < wizardPage.width ? upgradeButton.right : parent.left
anchors.leftMargin: parent.width < wizardPage.width ? UM.Theme.getSize("default_margin").width : 0
text: catalog.i18nc("@action:button","Skip Upgrade");
onClicked: {
base.currentPage += 1
}
onClicked: base.nextPage()
}
}
ExclusiveGroup { id: printerGroup; }