Debugger: Normalize some state handling

Remove some now-unusual connection to RunControl::finished
and use a finished() callback in the ToolRunner implementation
instead.

Change-Id: Ieddf05a2258d9a300ac50a739d77d9cfaee10ca6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-05-04 08:11:04 +02:00
parent 0e5fdb7fe3
commit fcdc9342b5
5 changed files with 7 additions and 9 deletions

View File

@@ -2957,6 +2957,8 @@ void DebuggerPluginPrivate::runControlStarted(DebuggerEngine *engine)
void DebuggerPluginPrivate::runControlFinished(DebuggerEngine *engine)
{
if (engine)
engine->handleFinished();
if (m_shuttingDown)
return;
showStatusMessage(tr("Debugger finished."));