Skip to content

Commit

Permalink
[Luminance HDR]: Portable mode (macOS) fix db path in normal mode #123
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomida committed Sep 11, 2018
1 parent f23dfa4 commit bdadfc7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Common/LuminanceOptions.cpp
Expand Up @@ -176,16 +176,15 @@ QString LuminanceOptions::getDatabaseFileName() {
QString filename;
if (LuminanceOptions::isCurrentPortableMode) {
filename = QGuiApplication::applicationDirPath();
#ifdef Q_OS_MACOS
filename += QLatin1String("/../../../.LuminanceHDR");
filename = QDir::cleanPath(filename);
#endif
} else {
filename = QDir(QDir::homePath()).absolutePath() + "/" +
LUMINANCE_HDR_HOME_FOLDER;
}
#ifdef Q_OS_MACOS
filename += QLatin1String("/../../../.LuminanceHDR/saved_parameters.db");
filename = QDir::cleanPath(filename);
#else
filename += QLatin1String("/saved_parameters.db");
#endif

return filename;
}
Expand Down

0 comments on commit bdadfc7

Please sign in to comment.