From 9536a965fd9574ea27f51adfa7bd363c3496ad77 Mon Sep 17 00:00:00 2001 From: blacksun Date: Sat, 10 Sep 2016 15:16:35 +0000 Subject: [PATCH] Minor fix: Unable to open elements directory with the elements panel in windows git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4698 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/ElementsCollection/elementscollectionwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/ElementsCollection/elementscollectionwidget.cpp b/sources/ElementsCollection/elementscollectionwidget.cpp index 3f27f74fd..c5eae80ae 100644 --- a/sources/ElementsCollection/elementscollectionwidget.cpp +++ b/sources/ElementsCollection/elementscollectionwidget.cpp @@ -260,9 +260,9 @@ void ElementsCollectionWidget::openDir() if (!eci) return; if (eci->type() == FileElementCollectionItem::Type) - QDesktopServices::openUrl(static_cast(eci)->dirPath()); + QDesktopServices::openUrl(QUrl("file:///" + static_cast(eci)->dirPath())); else if (eci->type() == XmlProjectElementCollectionItem::Type) - QDesktopServices::openUrl(static_cast(eci)->project()->currentDir()); + QDesktopServices::openUrl(QUrl("file:///" + static_cast(eci)->project()->currentDir())); } /**