Debugger: Ensure status message is printed

Activate the debugger engine before the status label is updated
to avoid purging the status label content.

Change-Id: I060cdaaf3d09e3636fbe206f65941ec56abb5eb7
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2018-09-24 10:27:21 +02:00
parent 3e4dc83a95
commit d38064892b

View File

@@ -1249,11 +1249,11 @@ void DebuggerEngine::notifyInferiorSpontaneousStop()
{ {
showMessage("NOTE: INFERIOR SPONTANEOUS STOP"); showMessage("NOTE: INFERIOR SPONTANEOUS STOP");
QTC_ASSERT(state() == InferiorRunOk, qDebug() << this << state()); QTC_ASSERT(state() == InferiorRunOk, qDebug() << this << state());
EngineManager::activateEngine(this);
showMessage(tr("Stopped."), StatusBar); showMessage(tr("Stopped."), StatusBar);
setState(InferiorStopOk); setState(InferiorStopOk);
if (boolSetting(RaiseOnInterrupt)) if (boolSetting(RaiseOnInterrupt))
ICore::raiseWindow(DebuggerMainWindow::instance()); ICore::raiseWindow(DebuggerMainWindow::instance());
EngineManager::activateEngine(this);
} }
void DebuggerEngine::notifyInferiorStopFailed() void DebuggerEngine::notifyInferiorStopFailed()