Scan clut folder: Don't check for unused profile
This commit is contained in:
parent
ea2e9dd274
commit
141e9f632f
@ -270,7 +270,8 @@ void rtengine::HaldCLUT::splitClutFilename(
|
||||
const Glib::ustring& filename,
|
||||
Glib::ustring& name,
|
||||
Glib::ustring& extension,
|
||||
Glib::ustring& profile_name
|
||||
Glib::ustring& profile_name,
|
||||
bool checkProfile
|
||||
)
|
||||
{
|
||||
Glib::ustring basename = Glib::path_get_basename(filename);
|
||||
@ -284,6 +285,7 @@ void rtengine::HaldCLUT::splitClutFilename(
|
||||
name = basename;
|
||||
}
|
||||
|
||||
if (checkProfile) {
|
||||
profile_name = "sRGB";
|
||||
|
||||
if (!name.empty()) {
|
||||
@ -298,6 +300,7 @@ void rtengine::HaldCLUT::splitClutFilename(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rtengine::CLUTStore& rtengine::CLUTStore::getInstance()
|
||||
|
@ -39,7 +39,8 @@ public:
|
||||
const Glib::ustring& filename,
|
||||
Glib::ustring& name,
|
||||
Glib::ustring& extension,
|
||||
Glib::ustring& profile_name
|
||||
Glib::ustring& profile_name,
|
||||
bool checkProfile = true
|
||||
);
|
||||
|
||||
private:
|
||||
|
@ -393,7 +393,7 @@ int ClutComboBox::ClutModel::parseDir(const Glib::ustring& path)
|
||||
Glib::ustring name;
|
||||
Glib::ustring extension;
|
||||
Glib::ustring profileName;
|
||||
HaldCLUT::splitClutFilename (entry, name, extension, profileName);
|
||||
HaldCLUT::splitClutFilename (entry, name, extension, profileName, false);
|
||||
|
||||
extension = extension.casefold();
|
||||
if (extension != "png" && extension != "tif") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user