forked from qt-creator/qt-creator
Use "timeout" consistently
Change-Id: Ic4e2ba6269bd61eb2fa2bbef1e1c24c05f91e6a5 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
@@ -96,7 +96,7 @@ FormatTask format(FormatTask task)
|
||||
process.start(executable, options);
|
||||
if (!process.waitForFinished(5000)) {
|
||||
process.kill();
|
||||
task.error = QObject::tr("Cannot call %1 or some other error occurred. Time out "
|
||||
task.error = QObject::tr("Cannot call %1 or some other error occurred. Timeout "
|
||||
"reached while formatting file %2.")
|
||||
.arg(executable).arg(task.filePath);
|
||||
return task;
|
||||
@@ -131,7 +131,7 @@ FormatTask format(FormatTask task)
|
||||
process.closeWriteChannel();
|
||||
if (!process.waitForFinished(5000)) {
|
||||
process.kill();
|
||||
task.error = QObject::tr("Cannot call %1 or some other error occurred. Time out "
|
||||
task.error = QObject::tr("Cannot call %1 or some other error occurred. Timeout "
|
||||
"reached while formatting file %2.")
|
||||
.arg(executable).arg(task.filePath);
|
||||
return task;
|
||||
|
Reference in New Issue
Block a user