forked from qt-creator/qt-creator
Utils: Fix QtcProcess::exitCode for non-SynchronousProcess
Change-Id: I18706e55db3fd31a69161be69e1cbec1a4fca975 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -477,7 +477,7 @@ void QtcProcess::setResult(Result result)
|
||||
|
||||
int QtcProcess::exitCode() const
|
||||
{
|
||||
return d->m_exitCode;
|
||||
return d->m_isSynchronousProcess ? d->m_exitCode : QProcess::exitCode(); // FIXME: Unify.
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user