diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2013-09-23 14:00:28 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-25 14:59:56 +0200 |
commit | aba6546f9b25d459205ebfa4f191300a08a34eee (patch) | |
tree | 488b5b9af49611bae8ffceb24dc3ad0b0313b252 | |
parent | e29fefa6ddbf3d30f8dde0735132e3dbb93cbef0 (diff) | |
download | qtquickcontrols-aba6546f9b25d459205ebfa4f191300a08a34eee.tar.gz |
Fix MenuBar related runtime warnings in ApplicationWindow
TypeError: Cannot read property '__contentItem' of null
Change-Id: I0eaf8b9779357e4314ed94335e017e32377195de
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-rw-r--r-- | src/controls/ApplicationWindow.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/ApplicationWindow.qml b/src/controls/ApplicationWindow.qml index dbbfbdaa..5df7286b 100644 --- a/src/controls/ApplicationWindow.qml +++ b/src/controls/ApplicationWindow.qml @@ -133,7 +133,7 @@ Window { id: backgroundItem anchors.fill: parent - Keys.forwardTo: [menuBar.__contentItem] + Keys.forwardTo: menuBar ? [menuBar.__contentItem] : [] Item { id: contentArea |