mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:13:23 +00:00
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:
parent
70b2359a42
commit
b6338cc30d
1 changed files with 5 additions and 1 deletions
|
@ -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("");
|
||||
|
|
Loading…
Add table
Reference in a new issue