Browse Source

Fix location of Qt.inputMethod.hide()

QGC4.4
DonLakeFlyer 5 years ago
parent
commit
46b4e578c0
  1. 2
      src/QmlControls/QGCViewDialog.qml
  2. 1
      src/QmlControls/QGCViewDialogContainer.qml

2
src/QmlControls/QGCViewDialog.qml

@ -32,14 +32,12 @@ Item {
function accept() { function accept() {
if (acceptAllowed) { if (acceptAllowed) {
Qt.inputMethod.hide()
hideDialog() hideDialog()
} }
} }
function reject() { function reject() {
if (rejectAllowed) { if (rejectAllowed) {
Qt.inputMethod.hide()
hideDialog() hideDialog()
} }
} }

1
src/QmlControls/QGCViewDialogContainer.qml

@ -86,6 +86,7 @@ Item {
Connections { Connections {
target: _dialogComponentLoader.item target: _dialogComponentLoader.item
onHideDialog: { onHideDialog: {
Qt.inputMethod.hide()
mainWindowDialog.close() mainWindowDialog.close()
} }
} }

Loading…
Cancel
Save