Hopefully this stops any crashes around QuickActions.qml and EmojiDialog.qml

Hopefully this stops any crashes around QuickActions.qml and EmojiDialog.qml. Best I can guess this is some race condition where QuickActions are deleted in the time it takes to instnatiate the EmojiDialog popup. I've also rearranged the updateQuickActions function to stop a possible race condition there.

BUG: 509484
This commit is contained in:
James Graham
2025-10-08 14:07:02 +01:00
committed by Tobias Fella
parent 1070427a0d
commit 7356a68f4c
2 changed files with 38 additions and 29 deletions

View File

@@ -33,6 +33,7 @@ RowLayout {
icon.name: "preferences-desktop-emoticons"
display: QQC2.ToolButton.IconOnly
onClicked: {
root.reacting = true;
var dialog = emojiDialog.createObject(reactButton);
dialog.chosen.connect(emoji => {
root.reacting = false;
@@ -44,7 +45,6 @@ RowLayout {
dialog.closed.connect(() => {
root.reacting = false;
})
root.reacting = true;
dialog.open();
}