Merge pull request #7307 from kaesa/dev

Fix DCPProfile constructor not respecting the verbose setting
This commit is contained in:
Lawrence37 2025-02-16 18:12:19 -08:00 committed by GitHub
commit c33b82edd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1131,13 +1131,17 @@ DCPProfile::DCPProfile(const Glib::ustring& filename) :
});
if (file == nullptr) {
printf ("Unable to load DCP profile '%s' !", filename.c_str());
if (settings->verbose) {
printf ("Unable to load DCP profile '%s' !\n", filename.c_str());
}
return;
}
DCPMetadata md(file.get());
if (!md.parse()) {
printf ("Unable to load DCP profile '%s'.", filename.c_str());
if (settings->verbose) {
printf ("Unable to load DCP profile '%s'.\n", filename.c_str());
}
return;
}