summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-07 22:24:32 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-07 22:24:32 (GMT)
commit29e5c9b27302e455b1ae9d324687ded3a40066d2 (patch)
tree33ba4ae138dc8842bb9879fb464265cf106552a4 /tools
parent55a3fda3baf545cc7fbfa6b2c00705be40a7319b (diff)
downloadQt-29e5c9b27302e455b1ae9d324687ded3a40066d2.zip
Qt-29e5c9b27302e455b1ae9d324687ded3a40066d2.tar.gz
Qt-29e5c9b27302e455b1ae9d324687ded3a40066d2.tar.bz2
Fix leaks.
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlviewer/qmlviewer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp
index 8d8d66a..a8901f9 100644
--- a/tools/qmlviewer/qmlviewer.cpp
+++ b/tools/qmlviewer/qmlviewer.cpp
@@ -506,7 +506,7 @@ void QmlViewer::createMenu(QMenuBar *menu, QMenu *flatmenu)
if (!flatmenu)
settingsMenu->addAction(recordOptions);
- QMenu *propertiesMenu = new QMenu(tr("Properties"));
+ QMenu *propertiesMenu = settingsMenu->addMenu(tr("Properties"));
QActionGroup *orientation = new QActionGroup(parent);
orientation->setExclusive(true);
portraitOrientation = new QAction(tr("orientation: Portrait"), parent);
@@ -521,8 +521,6 @@ void QmlViewer::createMenu(QMenuBar *menu, QMenu *flatmenu)
orientation->addAction(landscapeOrientation);
propertiesMenu->addAction(landscapeOrientation);
- settingsMenu->addMenu(propertiesMenu);
-
if (flatmenu) flatmenu->addSeparator();
QMenu *helpMenu = flatmenu ? flatmenu : menu->addMenu(tr("&Help"));