diff options
author | Takumi ASAKI <takumi.asaki@nokia.com> | 2012-01-23 22:48:55 -0800 |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2012-01-23 22:48:55 -0800 |
commit | b7d79a6b760ca1c0107409c7a95f9afda1b0e900 (patch) | |
tree | bdf8971fbd414fdc29128d75953247dffe523d87 | |
parent | 8c5ce3be9e9f6e6d40c23909b03ef5370ba60ecd (diff) | |
download | qtquickcontrols-b7d79a6b760ca1c0107409c7a95f9afda1b0e900.tar.gz |
Fix potential crash on MenuBar.
Merge-request: 14
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
-rw-r--r-- | src/qtmenubar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qtmenubar.cpp b/src/qtmenubar.cpp index ac71435e..76ecbd7d 100644 --- a/src/qtmenubar.cpp +++ b/src/qtmenubar.cpp @@ -44,7 +44,7 @@ #include <QtGui/QMenuBar> QtMenuBar::QtMenuBar(QDeclarativeItem *parent) - : QDeclarativeItem(parent)/*, _menuBar(new QMenuBar)*/ + : QDeclarativeItem(parent), _menuBar(0) /*, _menuBar(new QMenuBar)*/ { connect(this, SIGNAL(parentChanged()), this, SLOT(updateParent())); setFlag(QGraphicsItem::ItemHasNoContents, true); |