From 906fb972593151223cf83b204283892510cc475e 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 --- src/timeline/ChatBarComponent.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/timeline/ChatBarComponent.qml b/src/timeline/ChatBarComponent.qml index 4c58ff5bf..c313091ef 100644 --- a/src/timeline/ChatBarComponent.qml +++ b/src/timeline/ChatBarComponent.qml @@ -56,7 +56,10 @@ QQC2.Control { QQC2.TextArea { id: textArea - Component.onCompleted: _private.updateText() + + // Work around for BUG: 503846 + // Seems to crash when we try to access textArea's text here. Even though we add a slight delay it's still instantaneous in the UI. + Component.onCompleted: Qt.callLater(() => _private.updateText()) Layout.fillWidth: true