diff options
author | Lasse Holmstedt <lasse.holmstedt@nokia.com> | 2010-08-31 14:05:33 +0200 |
---|---|---|
committer | Lasse Holmstedt <lasse.holmstedt@nokia.com> | 2010-08-31 14:05:33 +0200 |
commit | 7607f2ffbe821cd12e443a0f9161fc37d3ec03e2 (patch) | |
tree | 5a2b4de74ed43f5ec4e2c5763e3579aaa6e3af12 | |
parent | 5ac78258564501f449f409fca46abe3a6ce7b87b (diff) | |
download | qt-creator-7607f2ffbe821cd12e443a0f9161fc37d3ec03e2.tar.gz |
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.
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 3 | ||||
-rw-r--r-- | src/plugins/debugger/debuggeruiswitcher.cpp | 12 |
2 files changed, 1 insertions, 14 deletions
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index fd649a3079..282b531097 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -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); diff --git a/src/plugins/debugger/debuggeruiswitcher.cpp b/src/plugins/debugger/debuggeruiswitcher.cpp index 4c3f51aa74..b10ece7bc7 100644 --- a/src/plugins/debugger/debuggeruiswitcher.cpp +++ b/src/plugins/debugger/debuggeruiswitcher.cpp @@ -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(); } |