Commit 436c5a76 authored by Pawel Polanski's avatar Pawel Polanski Committed by Paweł Polański

CODA: Fixed crash when redeploying

Change-Id: Id154468d6ee4db4eb045fde8a0e858ad5b17428f
Reviewed-on: http://codereview.qt-project.org/4469Reviewed-by: default avatarPaweł Polański <jaggernod@gmail.com>
parent eb206dfe
......@@ -321,6 +321,10 @@ void CodaRunControl::handleAddListener(const CodaCommandResult &result)
void CodaRunControl::handleDebugSessionStarted(const CodaCommandResult &result)
{
Q_UNUSED(result)
if (m_codaDevice.isNull()) {
finishRunControl();
return;
}
m_state = StateDebugSessionStarted;
m_codaDevice->sendLoggingAddListenerCommand(CodaCallback(this, &CodaRunControl::handleAddListener));
}
......
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