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:
Jarek Kobus
2022-06-29 17:44:30 +02:00
parent e22f50814d
commit ac4a4ded6c

View File

@@ -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 "