summaryrefslogtreecommitdiff
path: root/src/controls/Menu.qml
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>2013-03-01 21:07:44 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-04 12:47:36 +0100
commita238a5ad5afabbae6682b0f376f4e39611108bdf (patch)
treeef089cf8807e56dc0de02728b6fc8686246139aa /src/controls/Menu.qml
parent658ea07229c01405de473265f293e7d39e2b348c (diff)
downloadqtquickcontrols-a238a5ad5afabbae6682b0f376f4e39611108bdf.tar.gz
MenuBar: Fix mouse interaction
Used the same pattern as earlier with Menu. Change-Id: Id7a2d791516ba6d827e90c3b3e11f97dd326ccd5 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/Menu.qml')
-rw-r--r--src/controls/Menu.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Menu.qml b/src/controls/Menu.qml
index 362fe03c..9399f889 100644
--- a/src/controls/Menu.qml
+++ b/src/controls/Menu.qml
@@ -219,7 +219,7 @@ MenuPrivate {
currentItem = column.childAt(pos.x, pos.y)
if (currentItem) {
root.__currentIndex = currentItem.menuItemIndex
- if (currentItem.hasSubmenu && !currentItem.menuItem.popupVisible)
+ if (currentItem.hasSubmenu && !currentItem.menuItem.__popupVisible)
currentItem.showSubMenu(false)
} else {
root.__currentIndex = -1