summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-08-18 14:13:33 +0200
committerEike Ziller <eike.ziller@digia.com>2014-08-21 13:00:49 +0200
commitb7c8d07a8d9223c2e8ee098c1c7dde0a4b512e49 (patch)
treea52d9ff7e1d176902bc40843bff7229582ad66e4 /src/plugins/coreplugin
parent058507d37eb32e130d2831e08f1f5fd4d4c96a7c (diff)
downloadqt-creator-b7c8d07a8d9223c2e8ee098c1c7dde0a4b512e49.tar.gz
OSX: Get rid of File > Exit menu item
Seems to be a behavior change between Qt 5.2 and Qt 5.3. Now we need to set the menu role explicitly, text heuristic fails. Change-Id: I54ecfea5910db4863699bb077b8f8a6c88b56237 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/plugins/coreplugin')
-rw-r--r--src/plugins/coreplugin/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp
index da19097ea4..bcdc9f4598 100644
--- a/src/plugins/coreplugin/mainwindow.cpp
+++ b/src/plugins/coreplugin/mainwindow.cpp
@@ -554,6 +554,7 @@ void MainWindow::registerDefaultActions()
m_exitAction = new QAction(icon, tr("E&xit"), this);
cmd = ActionManager::registerAction(m_exitAction, Constants::EXIT, globalContext);
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Q")));
+ cmd->action()->setMenuRole(QAction::QuitRole);
mfile->addAction(cmd, Constants::G_FILE_OTHER);
connect(m_exitAction, SIGNAL(triggered()), this, SLOT(exit()));