We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef0d08e commit 728b61aCopy full SHA for 728b61a
1 file changed
src/gui/folderman.cpp
@@ -546,7 +546,8 @@ QString FolderMan::trayTooltipStatusString(
546
// parent directories.
547
static QString canonicalPath(const QString &path)
548
{
549
- QFileInfo selFile(path);
+ // QFile::canonicalFilePath for C: returns the current working dir 🤷♀️
550
+ QFileInfo selFile(Utility::ensureTrailingSlash(path));
551
if (!selFile.exists()) {
552
const auto parentPath = selFile.dir().path();
553
@@ -557,7 +558,7 @@ static QString canonicalPath(const QString &path)
557
558
return path;
559
}
560
- return canonicalPath(parentPath) + QLatin1Char('/') + selFile.fileName();
561
+ return canonicalPath(parentPath) + '/'_L1 + selFile.fileName();
562
563
return selFile.canonicalFilePath();
564
0 commit comments