Don't enable copy if no code is present

This commit is contained in:
Dag Heyman 2017-03-13 15:01:09 +01:00
parent 2e7cf4fd18
commit cc81dffa99
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338

View File

@ -253,6 +253,8 @@ ApplicationWindow {
MenuItem {
text: qsTr('Copy')
shortcut: StandardKey.Copy
enabled: (repeater.selected != null)
&& (repeater.selected.code != null)
onTriggered: {
if (repeater.selected != null) {
clipboard.setClipboard(repeater.selected.code)