forked from qt-creator/qt-creator
Replace QtcProcess::stopProcess() by stop() plus waitForFinished
... or nothing, if the process object is destroyed immediately. Change-Id: I6a1e1928bc49fc20a1c0e0ee9b8f4f723276bbca Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -363,7 +363,8 @@ FilePath AndroidQmlPreviewWorker::createQmlrcFile(const FilePath &workFolder,
|
||||
QByteArray stdOut;
|
||||
QByteArray stdErr;
|
||||
if (!rccProcess.readDataFromProcess(30, &stdOut, &stdErr, true)) {
|
||||
rccProcess.stopProcess();
|
||||
rccProcess.stop();
|
||||
rccProcess.waitForFinished();
|
||||
appendMessage(tr("A timeout occurred running \"%1\"").
|
||||
arg(rccProcess.commandLine().toUserOutput()), StdErrFormat);
|
||||
qrcPath.removeFile();
|
||||
|
Reference in New Issue
Block a user