Fix bug 0000086: Unable to open elements directory with the elements

panel in new KF5 with  
QUrl("file:///" translated to smb://


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4731 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2016-10-04 00:54:13 +00:00
parent 43d07c7c12
commit f15664cc8f

View File

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