Undefined shortcut was not defined as so.

This commit is contained in:
Adsooi 2021-08-16 00:14:39 +02:00
parent ab80a422ed
commit 5c6e05b1e4
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -62,7 +62,7 @@ Item {
Component.onCompleted: {
// Forwarding to MenuBar. Little hack to make Action shortcuts work properly, because otherwise, they would not trigger
if(shortcut != 0) {
if(shortcut != 0 && shortcut != undefined) {
parent.parent.addShortcut(shortcut, root.triggered)
}
}