From 97c67994770c6fe57df8f78d22882bd478540543 Mon Sep 17 00:00:00 2001 From: DoinLakeFlyer Date: Sat, 22 Feb 2020 09:39:43 -0800 Subject: [PATCH] Remove close dialog from click handlers --- src/QmlControls/QGCViewDialogContainer.qml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/QmlControls/QGCViewDialogContainer.qml b/src/QmlControls/QGCViewDialogContainer.qml index 10166b768..7eb43ae20 100644 --- a/src/QmlControls/QGCViewDialogContainer.qml +++ b/src/QmlControls/QGCViewDialogContainer.qml @@ -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 { -- 2.22.0