Debugger: Fix running on RemoteLinux

This (temporarily) works around the start up regression due
to wrong order of merged patches.

Change-Id: I7a386fb06175363aa23862716687764b930c52d8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2017-04-21 08:53:10 +02:00
parent 86ea365a0b
commit dfb825e2a7
2 changed files with 9 additions and 1 deletions

View File

@@ -525,6 +525,8 @@ DebuggerRunTool::DebuggerRunTool(RunControl *runControl, const DebuggerRunParame
}
}
qobject_cast<DebuggerRunControl *>(runControl)->m_engine = m_engine;
connect(runControl, &RunControl::finished,
this, &DebuggerRunTool::handleFinished);
connect(m_engine, &DebuggerEngine::requestRemoteSetup,
@@ -583,7 +585,8 @@ void DebuggerRunTool::showMessage(const QString &msg, int channel, int timeout)
DebuggerEngine *engine(const DebuggerRunControl *runControl)
{
QTC_ASSERT(runControl, return nullptr);
return qobject_cast<DebuggerRunTool *>(runControl->toolRunner())->engine();
//return qobject_cast<DebuggerRunTool *>(runControl->toolRunner())->engine();
return runControl->m_engine;
}