diff options
author | Lasse Holmstedt <[email protected]> | 2010-08-27 16:22:51 +0200 |
---|---|---|
committer | Lasse Holmstedt <[email protected]> | 2010-08-27 16:24:36 +0200 |
commit | afdd933ff3bd9c404f55ea8bfd7b1839bbb4a97a (patch) | |
tree | da0e3c0b8063a3a4b3b1ef804977b27d268fa78e /src/plugins/debugger/debuggerrunner.cpp | |
parent | f38942d843b5174a0e22b046f7737df4bda1a064 (diff) |
Debugger UI: Don't switch layout while debugging
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/debugger/debuggerrunner.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index 341fbbd8c53..9238fdb34a4 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -151,7 +151,8 @@ static DebuggerStartParameters localStartParameters(RunConfiguration *runConfigu sp.dumperLibrary = rc->dumperLibrary(); sp.dumperLibraryLocations = rc->dumperLibraryLocations(); - if (DebuggerRunControl::isQmlProject(runConfiguration)) { + DebuggerLanguages activeLangs = DebuggerUISwitcher::instance()->activeDebugLanguages(); + if (activeLangs & QmlLanguage) { sp.qmlServerAddress = QLatin1String("127.0.0.1"); sp.qmlServerPort = rc->environment().value("QML_DEBUG_SERVER_PORT").toUInt(); if (sp.qmlServerPort == 0) @@ -380,7 +381,7 @@ void DebuggerRunControl::createEngine(const DebuggerStartParameters &startParams if (!engineType) engineType = engineForMode(sp.startMode); - if (engineType != QmlEngineType && sp.m_isQmlProject && (activeLangs & QmlLanguage)) { + if (engineType != QmlEngineType && (activeLangs & QmlLanguage)) { if (activeLangs & CppLanguage) { sp.cppEngineType = engineType; engineType = QmlCppEngineType; @@ -497,14 +498,16 @@ void DebuggerRunControl::start() return; } - plugin()->activateDebugMode(); + DebuggerUISwitcher::instance()->aboutToStartDebugger(); const QString message = tr("Starting debugger '%1' for tool chain '%2'..."). arg(m_engine->objectName(), toolChainName(sp.toolChainType)); plugin()->showMessage(message, StatusBar); plugin()->showMessage(DebuggerSettings::instance()->dump(), LogDebug); - plugin()->runControlStarted(this); + + plugin()->activateDebugMode(); + engine()->startDebugger(this); m_running = true; emit started(); |