diff options
-rw-r--r-- | qt-gui.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index d57a3250b..78ce3c9a3 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -410,11 +410,15 @@ QString getSubsurfaceDataPath(QString folderToFind) if (folder.exists()) return folder.absolutePath(); } - // then look for the usual location on a Mac + // then look for the usual locations on a Mac execdir = QCoreApplication::applicationDirPath(); folder = QDir(execdir.append("/../Resources/share/").append(folderToFind)); if (folder.exists()) return folder.absolutePath(); + execdir = QCoreApplication::applicationDirPath(); + folder = QDir(execdir.append("/../Resources/").append(folderToFind)); + if (folder.exists()) + return folder.absolutePath(); return QString(""); } |