Merge pull request #3955

9bed455 oshelper: fix openContainingFolder on Linux (selsta)
This commit is contained in:
luigi1111
2022-07-08 13:54:27 -04:00

View File

@@ -174,7 +174,7 @@ bool OSHelper::openContainingFolder(const QString &filePath) const
}
#endif
QUrl url = QUrl::fromLocalFile(canonicalFilePath);
QUrl url = QUrl::fromLocalFile(QFileInfo(filePath).canonicalPath());
if (!url.isValid())
{
qWarning() << "Malformed file path" << canonicalFilePath << url.errorString();