aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/oshelper.cpp2
1 files changed, 1 insertions, 1 deletions
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();