Skip to content

Commit

Permalink
Normalize paths from file manager
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjv committed Dec 18, 2024
1 parent cd44186 commit 3641217
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/folderman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ Folder *FolderMan::addFolderInternal(
Folder *FolderMan::folderForPath(const QString &path, QString *relativePath)
{
QString absolutePath = QDir::cleanPath(path) + QLatin1Char('/');
if (!Utility::isLinux()) {
absolutePath = absolutePath.normalized(QString::NormalizationForm_C);
}

for (auto *folder : qAsConst(_folders)) {
const QString folderPath = folder->cleanPath() + QLatin1Char('/');
Expand Down

0 comments on commit 3641217

Please sign in to comment.