Debugger UI: Removed debug language detection on mode change

It did more harm than good. Now, the auto detection is only done on
run control change - this is something that Creator could also remember.
This commit is contained in:
Lasse Holmstedt
2010-08-31 14:05:33 +02:00
parent 5ac7825856
commit 7607f2ffbe
2 changed files with 1 additions and 14 deletions

View File

@@ -319,18 +319,6 @@ void DebuggerUISwitcher::modeChanged(Core::IMode *mode)
//|| DebuggerPlugin::instance()->hasSnapsnots())
return;
DebuggerLanguages activeLangs;
if (isCurrentProjectCppBased())
activeLangs |= CppLanguage;
if (isCurrentProjectQmlCppBased())
activeLangs |= QmlLanguage;
if (d->m_activateCppAction)
d->m_activateCppAction->setChecked(activeLangs & CppLanguage);
if (d->m_activateQmlAction)
d->m_activateQmlAction->setChecked(activeLangs & QmlLanguage);
updateActiveLanguages();
}