From 5d0f88ae2267573627442a10a27419e282188e20 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Thu, 6 Dec 2007 14:07:52 -0500 Subject: [PATCH] BUG: Prevent mapping of Configure to Preferences when Qt merges menu items with the standard Mac OS X application menu. --- Source/QtDialog/CMakeSetupDialog.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 73d887923..65e78905c 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -100,6 +100,8 @@ CMakeSetupDialog::CMakeSetupDialog() QMenu* ToolsMenu = this->menuBar()->addMenu(tr("&Tools")); this->ConfigureAction = ToolsMenu->addAction(tr("&Configure")); + // prevent merging with Preferences menu item on Mac OS X + this->ConfigureAction->setMenuRole(QAction::NoRole); QObject::connect(this->ConfigureAction, SIGNAL(triggered(bool)), this, SLOT(doConfigure())); this->GenerateAction = ToolsMenu->addAction(tr("&Generate"));