diff options
Diffstat (limited to 'src/controls/MenuBar.qml')
-rw-r--r-- | src/controls/MenuBar.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/MenuBar.qml b/src/controls/MenuBar.qml index 2628d064..78fd7cc7 100644 --- a/src/controls/MenuBar.qml +++ b/src/controls/MenuBar.qml @@ -291,7 +291,7 @@ MenuBarPrivate { Connections { target: __menuItem - onAboutToHide: { + function onAboutToHide() { if (d.openedMenuIndex === index) { d.openMenuAtIndex(-1) menuMouseArea.hoveredItem = null @@ -301,7 +301,7 @@ MenuBarPrivate { Connections { target: __menuItem.__action - onTriggered: d.openMenuAtIndex(__menuItemIndex) + function onTriggered() { d.openMenuAtIndex(__menuItemIndex) } } Component.onCompleted: { |