Merge branch 'dev' into flatfield_monochrom

This commit is contained in:
heckflosse
2018-03-11 00:27:35 +01:00
5 changed files with 60 additions and 69 deletions

View File

@@ -121,11 +121,14 @@ void ProfileStore::_parseProfiles ()
Glib::ustring p2 = options.getGlobalProfilePath();
bool displayLevel0 = options.useBundledProfiles && !p1.empty() && !p2.empty() && p1 != p2;
Glib::ustring virtualPath ("${U}");
Glib::ustring currDir ("${U}");
parseDir (p1, virtualPath, currDir, 0, 0, displayLevel0);
if (displayLevel0) {
Glib::ustring virtualPath;
Glib::ustring currDir;
if (!p1.empty()) {
virtualPath = "${U}";
currDir = "${U}";
parseDir (p1, virtualPath, currDir, 0, 0, displayLevel0);
}
if (p1.empty() || displayLevel0) {
virtualPath = "${G}";
currDir = "${G}";
parseDir (p2, virtualPath, currDir, 0, 0, displayLevel0);