Prevent crash if export format is N/A
This can happen when trying to use the mp3 preset while there is no mp3 encoder available.
This commit is contained in:
parent
f807ea6ea2
commit
a0a49b9769
|
@ -905,6 +905,13 @@ ExportProfileManager::get_warnings ()
|
|||
}
|
||||
}
|
||||
|
||||
for (auto const& fm : formats) {
|
||||
if (!fm->format) {
|
||||
warnings->errors.push_back (_("Invalid export format selected!"));
|
||||
return warnings;
|
||||
}
|
||||
}
|
||||
|
||||
/*** Check files ***/
|
||||
|
||||
/* handle_duplicate_format_extensions */
|
||||
|
|
Loading…
Reference in New Issue
Block a user