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
commit 39f0323a81
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

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();