summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-13 15:29:16 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-13 15:31:04 -0800
commitb6338cc30df39e60da7b2a44852dc0ae062f8365 (patch)
tree8f640510c17920779762efd18fadc0128ac7b132 /qt-gui.cpp
parent70b2359a428940ff1ef4ef514f55a42b0f161ae5 (diff)
downloadsubsurface-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.cpp6
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("");
}