Fix isEdit Check MessageEditComponent
Stop the console being pinged with qrc:/org/kde/neochat/qml/MessageEditComponent.qml:158: TypeError: Cannot read property 'isEditing' of undefined. Fixes network/neochat#629
This commit is contained in:
@@ -155,7 +155,7 @@ QQC2.TextArea {
|
|||||||
onChatBarCacheChanged: documentHandler.chatBarCache = chatBarCache
|
onChatBarCacheChanged: documentHandler.chatBarCache = chatBarCache
|
||||||
|
|
||||||
function updateEditText() {
|
function updateEditText() {
|
||||||
if (chatBarCache.isEditing && chatBarCache.relationMessage.length > 0) {
|
if (chatBarCache?.isEditing && chatBarCache.relationMessage.length > 0) {
|
||||||
root.text = chatBarCache.relationMessage
|
root.text = chatBarCache.relationMessage
|
||||||
root.forceActiveFocus();
|
root.forceActiveFocus();
|
||||||
root.cursorPosition = root.length;
|
root.cursorPosition = root.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user