From 6bdf39ad68a36aebb74d91b407fbfd6cff259a51 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 20 Jul 2020 12:31:40 -0400 Subject: [PATCH] Fix contextmenu "Copy text" when event highlighted When an event was highlighted with the keyboard, right clicking a message and clicking "Copy text" would always copy the message that was highlighted instead of the one the user aimed for. --- src/gui/Pages/Chat/Timeline/EventDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Pages/Chat/Timeline/EventDelegate.qml b/src/gui/Pages/Chat/Timeline/EventDelegate.qml index c6a11077..7480e525 100644 --- a/src/gui/Pages/Chat/Timeline/EventDelegate.qml +++ b/src/gui/Pages/Chat/Timeline/EventDelegate.qml @@ -227,7 +227,7 @@ HColumnLayout { qsTr("Copy text") onTriggered: { - if (! eventList.selectedCount && ! eventList.currentItem){ + if (! eventList.selectedCount){ Clipboard.text = JSON.parse(model.source).body return }