Unverified Commit 8ff70f7b authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #8393 from DonLakeFlyer/ViewDialogClose

QGCViewDialog: Remove close dialog from click handlers
parents fa06315f 78ffc03a
......@@ -176,6 +176,7 @@ AnalyzePage {
message: qsTr("All log files will be erased permanently. Is this really what you want?")
function accept() {
logController.eraseAll()
hideDialog()
}
}
}
......
......@@ -112,20 +112,14 @@ Item {
id: _rejectButton
anchors.right: _acceptButton.visible ? _acceptButton.left : parent.right
anchors.bottom: parent.bottom
onClicked: {
_dialogComponentLoader.item.reject()
mainWindowDialog.close()
}
onClicked: _dialogComponentLoader.item.reject()
}
QGCButton {
id: _acceptButton
anchors.right: parent.right
anchors.bottom: parent.bottom
primary: true
onClicked: {
_dialogComponentLoader.item.accept()
mainWindowDialog.close()
}
onClicked: _dialogComponentLoader.item.accept()
}
}
Item {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment