diff --git a/apps/launcher/datafilespage.cpp b/apps/launcher/datafilespage.cpp index eb8258c09d..3537ee30df 100644 --- a/apps/launcher/datafilespage.cpp +++ b/apps/launcher/datafilespage.cpp @@ -258,9 +258,7 @@ void Launcher::DataFilesPage::populateFileViews(const QString& contentModelName) } // deactivate data-local and global data directory: they are always included - const auto tmp = currentDir.toUtf8(); - if (currentDir == mDataLocal - || std::filesystem::path(Misc::StringUtils::stringToU8String(tmp)) == globalDataDir) + if (currentDir == mDataLocal || Files::pathFromQString(currentDir) == globalDataDir) { auto flags = item->flags(); item->setFlags(flags & ~(Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled | Qt::ItemIsEnabled));