make sure the lensfun db is found correctly when building RT in "bundle" mode

This commit is contained in:
Alberto Griggio
2017-09-17 00:35:37 +02:00
parent b1ce30c772
commit 6d453dbd34
3 changed files with 19 additions and 2 deletions

View File

@@ -24,7 +24,6 @@
#include "addsetids.h"
#include "guiutils.h"
#include "version.h"
#include "config.h"
#ifdef _OPENMP
#include <omp.h>
@@ -50,6 +49,8 @@ Options options;
Glib::ustring versionString = RTVERSION;
Glib::ustring paramFileExtension = ".pp3";
extern Glib::ustring lensfunDbPath; // defined in main
Options::Options ()
{
@@ -729,7 +730,7 @@ void Options::setDefaults ()
gimpPluginShowInfoDialog = true;
maxRecentFolders = 15;
rtSettings.lensfunDbDirectory = LENSFUN_DB_PATH;
rtSettings.lensfunDbDirectory = lensfunDbPath;
}
Options* Options::copyFrom (Options* other)