Commit d8763dca authored by hjk's avatar hjk

debugger: prevent crash

parent 660ae9b2
...@@ -769,7 +769,7 @@ void DebuggerEngine::notifyEngineSetupFailed() ...@@ -769,7 +769,7 @@ void DebuggerEngine::notifyEngineSetupFailed()
showMessage(_("NOTE: ENGINE SETUP FAILED")); showMessage(_("NOTE: ENGINE SETUP FAILED"));
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << this << state()); QTC_ASSERT(state() == EngineSetupRequested, qDebug() << this << state());
setState(EngineSetupFailed); setState(EngineSetupFailed);
if (isMasterEngine()) if (isMasterEngine() && runControl())
runControl()->startFailed(); runControl()->startFailed();
setState(DebuggerFinished); setState(DebuggerFinished);
} }
......
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