From 27455626fc04835fbca5072d102e0c99ad76f624 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sat, 27 Aug 2022 15:11:46 +0100 Subject: [PATCH] Change the input field text being set after posting message to not use a Qt.binding fucntion so that the the same room in two windows doesn't get the textfields bound together. --- imports/NeoChat/Component/ChatBox/ChatBar.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/imports/NeoChat/Component/ChatBox/ChatBar.qml b/imports/NeoChat/Component/ChatBox/ChatBar.qml index be53a5ab3..dcea6dfbb 100644 --- a/imports/NeoChat/Component/ChatBox/ChatBar.qml +++ b/imports/NeoChat/Component/ChatBox/ChatBar.qml @@ -405,9 +405,7 @@ ToolBar { } currentRoom.markAllMessagesAsRead(); inputField.clear(); - inputField.text = Qt.binding(function() { - return currentRoom ? currentRoom.cachedInput : ""; - }); + inputField.text = currentRoom ? currentRoom.cachedInput : ""; messageSent() }