forked from qt-creator/qt-creator
Debugger: Be a bit more explicit about states while quitting
... and make sure to use notifyInferiorIll only in states where the inferior might still be alive. Change-Id: Ie002cd8b70cc610b15bab00554c027494a0ad2e3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -2017,11 +2017,16 @@ void DebuggerEngine::quitDebugger()
|
||||
case EngineShutdownRequested:
|
||||
case InferiorShutdownRequested:
|
||||
break;
|
||||
case EngineRunFailed:
|
||||
case DebuggerFinished:
|
||||
case DebuggerNotReady:
|
||||
case EngineSetupFailed:
|
||||
case InferiorShutdownFinished:
|
||||
case EngineRunFailed:
|
||||
case EngineShutdownFinished:
|
||||
case DebuggerFinished:
|
||||
break;
|
||||
default:
|
||||
case InferiorRunRequested:
|
||||
case InferiorRunFailed:
|
||||
case InferiorStopRequested:
|
||||
// FIXME: We should disable the actions connected to that.
|
||||
notifyInferiorIll();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user