Skip to content

Commit

Permalink
CollectionSettingsPage: Fix string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Jan 4, 2025
1 parent 91e8fe0 commit 4f97325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/collectionsettingspage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4f97325

Please sign in to comment.