Undefined shortcut was not defined as so.
This commit is contained in:
parent
ab80a422ed
commit
5c6e05b1e4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue