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:
Robin Gareus
2022-11-04 22:10:19 +01:00
parent f807ea6ea2
commit a0a49b9769

View File

@@ -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 */