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:
parent
861be1a8b1
commit
6bdf39ad68
|
@ -227,7 +227,7 @@ HColumnLayout {
|
||||||
qsTr("Copy text")
|
qsTr("Copy text")
|
||||||
|
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (! eventList.selectedCount && ! eventList.currentItem){
|
if (! eventList.selectedCount){
|
||||||
Clipboard.text = JSON.parse(model.source).body
|
Clipboard.text = JSON.parse(model.source).body
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user