forked from qt-creator/qt-creator
Android: Fix empty output when sdkmanager command fails
Change-Id: I013f35880acd5683f23de49cb388c5ef9d8fc911 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
@@ -82,12 +82,9 @@ static bool sdkManagerCommand(const AndroidConfig config, const QStringList &arg
|
||||
proc.setTimeoutS(timeout);
|
||||
proc.setTimeOutMessageBoxEnabled(true);
|
||||
SynchronousProcessResponse response = proc.run(sdkManagerToolPath, args);
|
||||
if (response.result == SynchronousProcessResponse::Finished) {
|
||||
if (output)
|
||||
*output = response.allOutput();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return response.result == SynchronousProcessResponse::Finished;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user