Skip to content

Commit

Permalink
Avoid crashing on wasm when clicking outside of modal dialogs
Browse files Browse the repository at this point in the history
Same as dcfc3f3 but for general
ModalDialog. See QTBUG-121382.
  • Loading branch information
blammit committed Jan 25, 2024
1 parent 8dc2531 commit ec4a856
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/dialogs/ModalDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ T.Dialog {
NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: Theme.animation_page_fade_duration }
}
exit: Transition {
NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: Theme.animation_page_fade_duration }
NumberAnimation {
loops: Qt.platform.os == "wasm" ? 0 : 1 // workaround wasm crash, see https://bugreports.qt.io/browse/QTBUG-121382
property: "opacity"; from: 1.0; to: 0.0; duration: Theme.animation_page_fade_duration
}
}

background: Rectangle {
Expand Down

0 comments on commit ec4a856

Please sign in to comment.