summaryrefslogtreecommitdiffstats
path: root/src/tools/windeployqt/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/windeployqt/utils.cpp')
-rw-r--r--src/tools/windeployqt/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/windeployqt/utils.cpp b/src/tools/windeployqt/utils.cpp
index d7daa855cc2..227acca53b0 100644
--- a/src/tools/windeployqt/utils.cpp
+++ b/src/tools/windeployqt/utils.cpp
@@ -137,7 +137,7 @@ static inline void appendToCommandLine(const QString &argument, QString *command
bool runProcess(const QString &binary, const QStringList &args,
const QString &workingDirectory,
unsigned long *exitCode, QByteArray *stdOut, QByteArray *stdErr,
- QString *errorMessage)
+ QString *errorMessage, int timeout)
{
if (exitCode)
*exitCode = 0;
@@ -157,7 +157,7 @@ bool runProcess(const QString &binary, const QStringList &args,
}
process.start();
- if (!process.waitForStarted() || !process.waitForFinished()) {
+ if (!process.waitForStarted() || !process.waitForFinished(timeout)) {
if (errorMessage)
*errorMessage = process.errorString();
return false;