diff options
author | hjk <[email protected]> | 2010-06-22 12:41:41 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2010-06-22 12:42:26 +0200 |
commit | eba9157476abfb34c4fe60a1f7911ed8b2a636ec (patch) | |
tree | 5570901e6b0dec1f8554b88ab27634d0428f8869 /src/plugins/debugger/debuggerrunner.cpp | |
parent | 9a3acd48e4d52f3c27a0e9b264ddb5822cc013d6 (diff) |
debugger: pass RunConfiguration to ProjectExplorer::RunControl constructor if known.
Diffstat (limited to 'src/plugins/debugger/debuggerrunner.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index 129b5d0e665..a0f2c36a58f 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -168,12 +168,13 @@ RunControl *DebuggerRunControlFactory::create { QTC_ASSERT(mode == ProjectExplorer::Constants::DEBUGMODE, return 0); DebuggerStartParameters sp = localStartParameters(runConfiguration); - return create(sp); + return create(sp, runConfiguration); } -RunControl *DebuggerRunControlFactory::create(const DebuggerStartParameters &sp) +RunControl *DebuggerRunControlFactory::create(const DebuggerStartParameters &sp, + RunConfiguration *runConfiguration) { - DebuggerRunControl *runControl = new DebuggerRunControl; + DebuggerRunControl *runControl = new DebuggerRunControl(runConfiguration); runControl->setEnabledEngines(m_enabledEngines); runControl->createEngine(sp); if (!runControl->engine()) { @@ -200,10 +201,9 @@ QWidget *DebuggerRunControlFactory::createConfigurationWidget(RunConfiguration * // //////////////////////////////////////////////////////////////////////// -DebuggerRunControl::DebuggerRunControl(QObject *parent) - : RunControl(0, ProjectExplorer::Constants::DEBUGMODE) +DebuggerRunControl::DebuggerRunControl(RunConfiguration *runConfiguration) + : RunControl(runConfiguration, ProjectExplorer::Constants::DEBUGMODE) { - Q_UNUSED(parent); m_running = false; m_engine = 0; m_enabledEngines = AllEngineTypes; |