Fix copying event when no selection or focused

This commit is contained in:
miruka
2020-04-03 05:36:55 -04:00
parent af861ac13a
commit d991d04a8c
2 changed files with 4 additions and 2 deletions

View File

@@ -210,7 +210,7 @@ HColumnLayout {
qsTr("Copy text")
onTriggered: {
if (! eventList.selectedCount && eventList.currentItem === -1){
if (! eventList.selectedCount && ! eventList.currentItem){
Clipboard.text = JSON.parse(model.source).body
return
}