Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
478b0edd
Commit
478b0edd
authored
Jul 19, 2016
by
Don Gagne
Committed by
GitHub
Jul 19, 2016
Browse files
Merge pull request #3823 from DonLakeFlyer/DoubleConfirm
Prevent multiple clicks on dialog buttons
parents
46c6b8df
37353e60
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/QGCView.qml
View file @
478b0edd
...
...
@@ -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
()
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment