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) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DCPMetadata md(file.get());
|
DCPMetadata md(file.get());
|
||||||
if (!md.parse()) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user