From 4f973259530b22fd04d7aca22fea18becfd58a5a Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 4 Jan 2025 03:32:50 +0100 Subject: [PATCH] CollectionSettingsPage: Fix string conversion --- src/settings/collectionsettingspage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/collectionsettingspage.cpp b/src/settings/collectionsettingspage.cpp index 98cf5a2e7..6d1b4f0fd 100644 --- a/src/settings/collectionsettingspage.cpp +++ b/src/settings/collectionsettingspage.cpp @@ -252,7 +252,7 @@ void CollectionSettingsPage::AddDirectory() { if (!path.isEmpty()) { const QByteArray filesystemtype = QStorageInfo(QFileInfo(path).canonicalFilePath()).fileSystemType(); if (kRejectedFileSystems.contains(filesystemtype)) { - QMessageBox messagebox(QMessageBox::Critical, QObject::tr("Invalid collection directory"), QObject::tr("Can't add directory %1 with special filesystem %2 to collection").arg(path).arg(filesystemtype)); + QMessageBox messagebox(QMessageBox::Critical, QObject::tr("Invalid collection directory"), QObject::tr("Can't add directory %1 with special filesystem %2 to collection").arg(path).arg(QString::fromUtf8(filesystemtype))); (void)messagebox.exec(); return; }