1
0

qml: add doAccept and doReject functions to ElDialog.

These functions make sure no duplicate accepted/rejected signals are emitted.
This commit is contained in:
Sander van Grieken
2023-04-11 11:29:00 +02:00
parent 75f63a4666
commit a0939aad75
8 changed files with 37 additions and 17 deletions

View File

@@ -131,7 +131,7 @@ ElDialog {
function finish() {
currentItem.accept()
_setWizardData(pages.contentChildren[currentIndex].wizard_data)
wizard.accept()
wizard.doAccept()
}
property bool pagevalid: false
@@ -163,7 +163,7 @@ ElDialog {
Layout.preferredWidth: 1
visible: pages.currentIndex == 0
text: qsTr("Cancel")
onClicked: wizard.reject()
onClicked: wizard.doReject()
}
FlatButton {
Layout.fillWidth: true