File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,8 @@ QString FolderMan::trayTooltipStatusString(
546546// parent directories.
547547static QString canonicalPath (const QString &path)
548548{
549- QFileInfo selFile (path);
549+ // QFile::canonicalFilePath for C: returns the current working dir 🤷♀️
550+ QFileInfo selFile (Utility::ensureTrailingSlash (path));
550551 if (!selFile.exists ()) {
551552 const auto parentPath = selFile.dir ().path ();
552553
@@ -557,7 +558,7 @@ static QString canonicalPath(const QString &path)
557558 return path;
558559 }
559560
560- return canonicalPath (parentPath) + QLatin1Char ( ' /' ) + selFile.fileName ();
561+ return canonicalPath (parentPath) + ' /' _L1 + selFile.fileName ();
561562 }
562563 return selFile.canonicalFilePath ();
563564}
You can’t perform that action at this time.
0 commit comments