forked from qt-creator/qt-creator
Tr: Various small fixes
Change-Id: Ic86d6b6a4aae7b301557eaa4296beb9a31399e03 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -69,8 +69,7 @@ static FormatTask format(FormatTask task)
|
||||
process.setCommand({executable, options});
|
||||
process.runBlocking();
|
||||
if (process.result() != ProcessResult::FinishedWithSuccess) {
|
||||
task.error = Tr::tr("TextEditor", "Failed to format: %1.")
|
||||
.arg(process.exitMessage());
|
||||
task.error = Tr::tr("Failed to format: %1.").arg(process.exitMessage());
|
||||
return task;
|
||||
}
|
||||
const QString output = process.cleanedStdErr();
|
||||
@@ -249,8 +248,7 @@ void updateEditorText(QPlainTextEdit *editor, const QString &text)
|
||||
|
||||
static void showError(const QString &error)
|
||||
{
|
||||
Core::MessageManager::writeFlashing(Tr::tr("TextEditor", "Error in text formatting: %1")
|
||||
.arg(error.trimmed()));
|
||||
Core::MessageManager::writeFlashing(Tr::tr("Error in text formatting: %1").arg(error.trimmed()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user