From ac4a4ded6c89dd26412341a426ac1ca3d3649065 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 29 Jun 2022 17:44:30 +0200 Subject: [PATCH] FormatTextEditor: Don't call blocking waitForStarted() This is unneeded when followed by waitForFinished(). Change-Id: I40a25e87bf5a5d1ece50715d72e2c48f4209344d Reviewed-by: Reviewed-by: David Schulz --- src/plugins/texteditor/formattexteditor.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/texteditor/formattexteditor.cpp b/src/plugins/texteditor/formattexteditor.cpp index a01f543f1a1..8c1a448e2f6 100644 --- a/src/plugins/texteditor/formattexteditor.cpp +++ b/src/plugins/texteditor/formattexteditor.cpp @@ -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 "