Commit 3e68d1a7 authored by dt's avatar dt
Browse files

Fix RunConfigurations showing only enabled RunConfigurations

parent 69969bef
...@@ -2000,7 +2000,6 @@ void ProjectExplorerPlugin::populateRunConfigurationMenu() ...@@ -2000,7 +2000,6 @@ void ProjectExplorerPlugin::populateRunConfigurationMenu()
foreach (const Project *pro, d->m_session->projects()) { foreach (const Project *pro, d->m_session->projects()) {
foreach (QSharedPointer<RunConfiguration> runConfiguration, pro->runConfigurations()) { foreach (QSharedPointer<RunConfiguration> runConfiguration, pro->runConfigurations()) {
if (runConfiguration->isEnabled()) {
const QString title = QString("%1 (%2)").arg(pro->name(), runConfiguration->name()); const QString title = QString("%1 (%2)").arg(pro->name(), runConfiguration->name());
QAction *act = new QAction(title, d->m_runConfigurationActionGroup); QAction *act = new QAction(title, d->m_runConfigurationActionGroup);
act->setCheckable(true); act->setCheckable(true);
...@@ -2012,7 +2011,6 @@ void ProjectExplorerPlugin::populateRunConfigurationMenu() ...@@ -2012,7 +2011,6 @@ void ProjectExplorerPlugin::populateRunConfigurationMenu()
<< "active:" << (runConfiguration == activeRunConfiguration); << "active:" << (runConfiguration == activeRunConfiguration);
} }
} }
}
d->m_runConfigurationMenu->setDisabled(d->m_runConfigurationMenu->actions().isEmpty()); d->m_runConfigurationMenu->setDisabled(d->m_runConfigurationMenu->actions().isEmpty());
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment