Commit 7607f2ff authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

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.
parent 5ac78258
......@@ -498,6 +498,7 @@ void DebuggerRunControl::start()
return;
}
plugin()->activateDebugMode();
DebuggerUISwitcher::instance()->aboutToStartDebugger();
const QString message = tr("Starting debugger '%1' for tool chain '%2'...").
......@@ -506,8 +507,6 @@ void DebuggerRunControl::start()
plugin()->showMessage(DebuggerSettings::instance()->dump(), LogDebug);
plugin()->runControlStarted(this);
plugin()->activateDebugMode();
engine()->startDebugger(this);
m_running = true;
emit addToOutputWindowInline(this, tr("Debugging starts"), false);
......
......@@ -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();
}
......
Markdown is supported
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