diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-10-13 18:43:13 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-13 11:31:34 -0700 |
commit | 39d7ae5f3a09b90865adaca78ffcf085cd557464 (patch) | |
tree | b27673634bf60a884cbbfc121c1339802d10a163 /qt-gui.cpp | |
parent | a2a93ff04b26b9b3da96d780c3540451493f0858 (diff) | |
download | subsurface-39d7ae5f3a09b90865adaca78ffcf085cd557464.tar.gz |
Use QDir::currentPath to get the current directory
applicationDirPath() does not find the source directory (if build
directory differs from source directory). Using currentPath() allows one
to still run built Subsurface from the source directory and find e.g.
xslt_path.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r-- | qt-gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp index 8a27b6eb2..8d678909e 100644 --- a/qt-gui.cpp +++ b/qt-gui.cpp @@ -390,7 +390,7 @@ QString getSubsurfaceDataPath(QString folderToFind) // first check if we are running in the build dir, so this // is just subdirectory of the current directory - execdir = QCoreApplication::applicationDirPath(); + execdir = QDir::currentPath(); folder = QDir(execdir.append(QDir::separator()).append(folderToFind)); if (folder.exists()) return folder.absolutePath(); |