[qet] [4698] Minor fix: Unable to open elements directory with the elements panel in windows |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4698
Author: blacksun
Date: 2016-09-10 17:16:35 +0200 (Sat, 10 Sep 2016)
Log Message:
-----------
Minor fix: Unable to open elements directory with the elements panel in windows
Modified Paths:
--------------
trunk/sources/ElementsCollection/elementscollectionwidget.cpp
Modified: trunk/sources/ElementsCollection/elementscollectionwidget.cpp
===================================================================
--- trunk/sources/ElementsCollection/elementscollectionwidget.cpp 2016-09-08 09:05:17 UTC (rev 4697)
+++ trunk/sources/ElementsCollection/elementscollectionwidget.cpp 2016-09-10 15:16:35 UTC (rev 4698)
@@ -260,9 +260,9 @@
if (!eci) return;
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)
- QDesktopServices::openUrl(static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir());
+ QDesktopServices::openUrl(QUrl("file:///" + static_cast<XmlProjectElementCollectionItem*>(eci)->project()->currentDir()));
}
/**