From 457b4ee3bef597ebd5494238757f4c0ed2154146 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 14 May 2025 18:14:42 -0400 Subject: [PATCH] Fix crash when trying to edit your message on a wide screen This only seems to happen when the window is maximized, specifically the height of the window. This seems to be a weird TextArea issue (or something else in our TimelineView) but until that's found out, a Qt.callLater will prevent this annoying crash. BUG: 503846 (cherry picked from commit 906fb972593151223cf83b204283892510cc475e) --- src/timeline/ChatBarComponent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/ChatBarComponent.qml b/src/timeline/ChatBarComponent.qml index dbab18205..f34f6482c 100644 --- a/src/timeline/ChatBarComponent.qml +++ b/src/timeline/ChatBarComponent.qml @@ -37,7 +37,7 @@ QQC2.TextArea { Layout.maximumWidth: root.maxContentWidth Layout.minimumHeight: chatButtons.height + topPadding + bottomPadding - Component.onCompleted: _private.updateText() + Component.onCompleted: Qt.callLater(() => _private.updateText()) topPadding: Kirigami.Units.smallSpacing bottomPadding: Kirigami.Units.smallSpacing