Skip to content

Commit

Permalink
more freezing cases fix in formPage
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Jun 19, 2024
1 parent 57b7cfe commit 1e20030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/qml/components/MMToolbar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ Rectangle {
text: model.btnData.text

onClicked: {
// Prevent freezing by clearing focus from all elements
// Issues #3389 and #3483
root.forceActiveFocus()
root.index = model.index
model.btnData.clicked()
}
Expand Down
5 changes: 1 addition & 4 deletions app/qml/form/MMFormPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ Page {
text: qsTr( "Edit geometry" )
iconSource: __style.editIcon
visible: root.layerIsSpatial
onClicked: {
root.forceActiveFocus() // clear focus from all elements to prevent freezing #3483
root.editGeometryRequested( root.controller.featureLayerPair )
}
onClicked: root.editGeometryRequested( root.controller.featureLayerPair )
}
}

Expand Down

0 comments on commit 1e20030

Please sign in to comment.