forked from qt-creator/qt-creator
Fix showing non-zero exit code in output pane for remote app
Change-Id: Ifc1b26c439ad6e78669b4ba9ac38e7d7e6a8c614 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -451,15 +451,8 @@ void ApplicationLauncherPrivate::handleApplicationFinished()
|
||||
{
|
||||
QTC_ASSERT(m_state == Run, return);
|
||||
|
||||
if (m_deviceProcess->exitStatus() == QProcess::CrashExit) {
|
||||
if (m_deviceProcess->exitStatus() == QProcess::CrashExit)
|
||||
doReportError(m_deviceProcess->errorString(), QProcess::Crashed);
|
||||
} else {
|
||||
const int exitCode = m_deviceProcess->exitCode();
|
||||
if (exitCode != 0) {
|
||||
doReportError(ApplicationLauncher::tr("Application finished with exit code %1.")
|
||||
.arg(exitCode), QProcess::UnknownError);
|
||||
}
|
||||
}
|
||||
setFinished();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user