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>
This commit is contained in:
Dirk Hohndel 2013-12-13 15:29:16 -08:00
parent 70b2359a42
commit b6338cc30d

View file

@ -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("");