Skip to content
Snippets Groups Projects
Commit 37353e60 authored by Don Gagne's avatar Don Gagne
Browse files

Prevent multiple clicks on dialog buttons

This can happen on slow touch based systems
parent 46c6b8df
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,9 @@ FactPanel {
return
}
__rejectButton.enabled = true
__acceptButton.enabled = true
__stopAllAnimations()
__dialogCharWidth = charWidth
......@@ -144,6 +147,9 @@ FactPanel {
return
}
__rejectButton.enabled = true
__acceptButton.enabled = true
__stopAllAnimations()
__dialogCharWidth = showDialogDefaultWidth
......@@ -302,7 +308,10 @@ FactPanel {
anchors.right: __acceptButton.visible ? __acceptButton.left : parent.right
anchors.bottom: parent.bottom
onClicked: __dialogComponentLoader.item.reject()
onClicked: {
enabled = false // prevent multiple clicks
__dialogComponentLoader.item.reject()
}
}
QGCButton {
......@@ -311,6 +320,7 @@ FactPanel {
primary: true
onClicked: {
enabled = false // prevent multiple clicks
__dialogComponentLoader.item.accept()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment