forked from qt-creator/qt-creator
FormatTextEditor: Don't call blocking waitForStarted()
This is unneeded when followed by waitForFinished(). Change-Id: I40a25e87bf5a5d1ece50715d72e2c48f4209344d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -120,12 +120,6 @@ static FormatTask format(FormatTask task)
|
||||
process.setCommand({FilePath::fromString(executable), options});
|
||||
process.setWriteData(task.sourceData.toUtf8());
|
||||
process.start();
|
||||
if (!process.waitForStarted(3000)) {
|
||||
task.error = QString(QT_TRANSLATE_NOOP("TextEditor",
|
||||
"Cannot call %1 or some other error occurred."))
|
||||
.arg(executable);
|
||||
return task;
|
||||
}
|
||||
if (!process.waitForFinished(5000)) {
|
||||
task.error = QString(QT_TRANSLATE_NOOP("TextEditor",
|
||||
"Cannot call %1 or some other error occurred. Timeout "
|
||||
|
||||
Reference in New Issue
Block a user