diff -r 1a4342d80de7 -r 654661eab7f3 src/settingseditor/librarieseditor.cpp --- a/src/settingseditor/librarieseditor.cpp Wed Jun 08 20:41:21 2022 +0300 +++ b/src/settingseditor/librarieseditor.cpp Wed Jun 08 22:29:44 2022 +0300 @@ -48,11 +48,11 @@ const QDir dir{this->ui.newLibraryPath->text()}; if (not dir.exists()) { - QMessageBox::critical(this, + QMessageBox::critical( + this, tr("Library does not exist"), - format( - tr("The directory %1 does not exist."), - quoted(dir.path()))); + tr("The directory %1 does not exist.").arg(quoted(dir.path())) + ); } else { @@ -60,9 +60,8 @@ { QMessageBox::warning(this, tr("Unreadable library"), - format( - tr("The directory %1 cannot be read."), - quoted(dir.path()))); + tr("The directory %1 cannot be read.").arg(quoted(dir.path())) + ); } this->libraries.addLibrary({Library::OfficialLibrary, dir}); this->ui.newLibraryPath->clear();