From 9fe3f85d06e479721f16fe1075fde273d6e86a4a Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Tue, 4 Oct 2016 10:37:02 +0000 Subject: [PATCH] Improve latest commit for MAC OS git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4732 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- .../ElementsCollection/elementscollectionwidget.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 }