diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-12-13 15:29:16 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-13 15:31:04 -0800 |
commit | b6338cc30df39e60da7b2a44852dc0ae062f8365 (patch) | |
tree | 8f640510c17920779762efd18fadc0128ac7b132 /qt-gui.cpp | |
parent | 70b2359a428940ff1ef4ef514f55a42b0f161ae5 (diff) | |
download | subsurface-b6338cc30df39e60da7b2a44852dc0ae062f8365.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-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(""); } |