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

Fix RunConfigurations showing only enabled RunConfigurations

parent 69969bef
...@@ -2000,17 +2000,15 @@ void ProjectExplorerPlugin::populateRunConfigurationMenu() ...@@ -2000,17 +2000,15 @@ 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); act->setData(qVariantFromValue(runConfiguration));
act->setData(qVariantFromValue(runConfiguration)); act->setChecked(runConfiguration == activeRunConfiguration);
act->setChecked(runConfiguration == activeRunConfiguration); d->m_runConfigurationMenu->addAction(act);
d->m_runConfigurationMenu->addAction(act); if (debug)
if (debug) qDebug() << "RunConfiguration" << runConfiguration << "project:" << pro->name()
qDebug() << "RunConfiguration" << runConfiguration << "project:" << pro->name() << "active:" << (runConfiguration == activeRunConfiguration);
<< "active:" << (runConfiguration == activeRunConfiguration);
}
} }
} }
......
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