Possibly fix crash when creating a new format profile
when there are none existing. git-svn-id: svn://localhost/ardour2/branches/3.0@12206 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3564b9b6bc
commit
075e90e023
@ -96,7 +96,7 @@ ExportFormatSelector::update_format_list ()
|
||||
tree_it->set_value (format_cols.label, (*it)->description());
|
||||
}
|
||||
|
||||
if (format_combo.get_active_row_number() == -1) {
|
||||
if (format_combo.get_active_row_number() == -1 && format_combo.get_model()->children().size() > 0) {
|
||||
format_combo.set_active (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user