mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
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:
@@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user