diff -r 1a4342d80de7 -r 654661eab7f3 src/documentmanager.cpp --- a/src/documentmanager.cpp Wed Jun 08 20:41:21 2022 +0300 +++ b/src/documentmanager.cpp Wed Jun 08 22:29:44 2022 +0300 @@ -188,9 +188,8 @@ if (not bag.missing.empty()) { bag.missing.sort(Qt::CaseInsensitive); - errorStream << format( - tr("The following files could not be opened: %1"), - bag.missing.join(", ")); + errorStream << tr("The following files could not be opened: %1") + .arg(bag.missing.join(", ")); } } @@ -267,8 +266,7 @@ else { errors << tr("Could not open %1 for writing: %2") - .arg(file.fileName()) - .arg(file.errorString()); + .arg(file.fileName(), file.errorString()); return false; } }