AndroidDeployQtStep::processFinished: Check for exitStatus and exitCode

If the build failed there's no point in opening a shell.

Change-Id: Icf27fa82c105f934a5d81ab0f317e0396cb12697
Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
BogDan Vatra
2014-06-24 17:04:36 +02:00
committed by Daniel Teske
parent c55d9a8e17
commit c4451570e7

View File

@@ -386,7 +386,7 @@ ProjectExplorer::BuildStepConfigWidget *AndroidDeployQtStep::createConfigWidget(
void AndroidDeployQtStep::processFinished(int exitCode, QProcess::ExitStatus status)
{
AbstractProcessStep::processFinished(exitCode, status);
if (m_openPackageLocationForRun)
if (m_openPackageLocationForRun && status == QProcess::NormalExit && exitCode == 0)
QMetaObject::invokeMethod(this, "showInGraphicalShell", Qt::QueuedConnection);
}