Merge pull request #7307 from kaesa/dev
Fix DCPProfile constructor not respecting the verbose setting
This commit is contained in:
commit
c33b82edd7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user