oshelper: fix openContainingFolder on Linux

This commit is contained in:
selsta 2022-06-27 00:41:56 +02:00
parent 96cca79b70
commit 9bed4554eb
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
1 changed files with 1 additions and 1 deletions

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