From b6338cc30df39e60da7b2a44852dc0ae062f8365 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 13 Dec 2013 15:29:16 -0800 Subject: Look in one more place for our files on a Mac Our directory structure is somewhat inconsistent on a Mac. Instead of trying to mess with the qmake files and breaking other things this late in the process, I simply decided to look in one more place for our files (this time the translations). Fixes #362 Signed-off-by: Dirk Hohndel --- qt-gui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qt-gui.cpp') diff --git a/qt-gui.cpp b/qt-gui.cpp index d57a3250b..78ce3c9a3 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -410,9 +410,13 @@ 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(""); -- cgit v1.2.3-70-g09d2