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.
This commit is contained in:
miruka 2020-07-20 12:31:40 -04:00
parent 861be1a8b1
commit 6bdf39ad68

View File

@ -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
}