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
This commit is contained in:
blacksun
2016-09-10 15:16:35 +00:00
parent 0a9f2bbccc
commit 9536a965fd

View File

@@ -260,9 +260,9 @@ void ElementsCollectionWidget::openDir()
if (!eci) return; if (!eci) return;
if (eci->type() == FileElementCollectionItem::Type) if (eci->type() == FileElementCollectionItem::Type)
QDesktopServices::openUrl(static_cast<FileElementCollectionItem*>(eci)->dirPath()); QDesktopServices::openUrl(QUrl("file:///" + static_cast<FileElementCollectionItem*>(eci)->dirPath()));
else if (eci->type() == XmlProjectElementCollectionItem::Type) else if (eci->type() == XmlProjectElementCollectionItem::Type)
QDesktopServices::openUrl(static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir()); QDesktopServices::openUrl(QUrl("file:///" + static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir()));
} }
/** /**