consoleprocess_unix: correct isRunning property

Correctly returns true when the stubSocket is connected but the
process has already returned

Change-Id: Ie687e4109254cbe3a3a60e95bf182ce3b835e73a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Fawzi Mohamed
2013-03-20 15:33:30 +01:00
parent 356b85d431
commit 7b19420837

View File

@@ -213,7 +213,8 @@ void ConsoleProcess::stop()
bool ConsoleProcess::isRunning() const bool ConsoleProcess::isRunning() const
{ {
return d->m_process.state() != QProcess::NotRunning; return d->m_process.state() != QProcess::NotRunning
|| (d->m_stubSocket && d->m_stubSocket->isOpen());
} }
QString ConsoleProcess::stubServerListen() QString ConsoleProcess::stubServerListen()