mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ ExportFormatSelector::update_format_list ()
|
||||||
tree_it->set_value (format_cols.label, (*it)->description());
|
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);
|
format_combo.set_active (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue