diff --git a/sources/ElementsCollection/elementscollectionwidget.cpp b/sources/ElementsCollection/elementscollectionwidget.cpp index b21d2d377..ea4b9d1ee 100644 --- a/sources/ElementsCollection/elementscollectionwidget.cpp +++ b/sources/ElementsCollection/elementscollectionwidget.cpp @@ -261,17 +261,17 @@ void ElementsCollectionWidget::openDir() if (eci->type() == FileElementCollectionItem::Type) -#ifdef Q_OS_WIN32 - QDesktopServices::openUrl(QUrl("file:///" + static_cast(eci)->dirPath())); -#else +#ifdef Q_OS_LINUX QDesktopServices::openUrl(static_cast(eci)->dirPath()); +#else + QDesktopServices::openUrl(QUrl("file:///" + static_cast(eci)->dirPath())); #endif else if (eci->type() == XmlProjectElementCollectionItem::Type) -#ifdef Q_OS_WIN32 - QDesktopServices::openUrl(QUrl("file:///" + static_cast(eci)->project()->currentDir())); -#else +#ifdef Q_OS_LINUX QDesktopServices::openUrl(static_cast(eci)->project()->currentDir()); +#else + QDesktopServices::openUrl(QUrl("file:///" + static_cast(eci)->project()->currentDir())); #endif }