summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-10-15 16:47:01 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-15 16:48:55 +0200
commit092200521ef92eb321bcd234e406af7df56ed4d3 (patch)
tree48b863343fb1421a603125ef6bee03dcf5929b0b
parent4ca6773763ad6dc9ac12f9550889c2c1ec0e7af1 (diff)
downloadqtquickcontrols-092200521ef92eb321bcd234e406af7df56ed4d3.tar.gz
Menu: fix runtime warning
Menu.qml:292: TypeError: Cannot read property 'visible' of undefined Change-Id: I95cebf3a45e4ef5d663e344a8d716a0a5810d0ad Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-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 c13717d1..689505ac 100644
--- a/src/controls/Menu.qml
+++ b/src/controls/Menu.qml
@@ -289,7 +289,7 @@ MenuPrivate {
sourceComponent: menuFrameLoader.menuItemStyle
enabled: visible && !isSeparator && !!menuItem && menuItem.enabled
- visible: menuItem.visible
+ visible: !!menuItem && menuItem.visible
active: visible
function showSubMenu(immediately) {