diff --git a/src/plugins/debugger/terminal.cpp b/src/plugins/debugger/terminal.cpp index 09dcdb156c2..58fcdd3ec31 100644 --- a/src/plugins/debugger/terminal.cpp +++ b/src/plugins/debugger/terminal.cpp @@ -182,8 +182,8 @@ TerminalRunner::TerminalRunner(DebuggerRunTool *debugger) this, &TerminalRunner::stubError); connect(&m_stubProc, &ConsoleProcess::processStarted, this, &TerminalRunner::stubStarted); - connect(&m_stubProc, &ConsoleProcess::stubStopped, - this, &TerminalRunner::stubExited); + connect(&m_stubProc, &ConsoleProcess::processStopped, + this, [this] { reportDone(); }); } void TerminalRunner::start() @@ -224,11 +224,6 @@ void TerminalRunner::stubError(const QString &msg) reportFailure(msg); } -void TerminalRunner::stubExited() -{ - reportStopped(); -} - } // namespace Internal } // namespace Debugger diff --git a/src/plugins/debugger/terminal.h b/src/plugins/debugger/terminal.h index 0745373e0ea..cd39daa5fc0 100644 --- a/src/plugins/debugger/terminal.h +++ b/src/plugins/debugger/terminal.h @@ -82,7 +82,6 @@ private: void stop() final; void stubStarted(); - void stubExited(); void stubError(const QString &msg); Utils::ConsoleProcess m_stubProc;