diff --git a/src/main/oshelper.cpp b/src/main/oshelper.cpp index 2f8daf7f..c9b1e269 100644 --- a/src/main/oshelper.cpp +++ b/src/main/oshelper.cpp @@ -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();