From 9bed4554eb50aa98af94a799c74d0841dc94ed37 Mon Sep 17 00:00:00 2001 From: selsta Date: Mon, 27 Jun 2022 00:41:56 +0200 Subject: [PATCH] oshelper: fix openContainingFolder on Linux --- src/main/oshelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();