Skip to content
Snippets Groups Projects
Commit 0a85b90d authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

Debugger UI: Don't check "C++" language if active project is .qmlproject

parent adab5f0e
No related branches found
No related tags found
No related merge requests found
......@@ -229,13 +229,22 @@ void DebuggerUISwitcher::updateUiForTarget(ProjectExplorer::Target *target)
}
}
static bool isQmlProjectType(ProjectExplorer::RunConfiguration *rc)
{
if (rc && rc->target() && rc->target()->project()) {
return (rc->target()->project()->id() == QLatin1String("QmlProjectManager.QmlProject"));
}
return false;
}
// updates default debug language settings per run config.
void DebuggerUISwitcher::updateUiForRunConfiguration(ProjectExplorer::RunConfiguration *rc)
{
bool isDotQmlProjectType = isQmlProjectType(rc);
if (rc) {
d->m_languageActionGroup->setDisabled(false);
if (DebuggerRunControl::isQmlProject(rc) && d->m_qmlEnabled) {
d->m_activateCppAction->setChecked(true);
d->m_activateCppAction->setChecked(!isDotQmlProjectType);
d->m_activateQmlAction->setChecked(true);
} else {
if (d->m_activateQmlAction) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment