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:
Carl Hetherington 2012-05-08 01:49:35 +00:00
parent 3564b9b6bc
commit 075e90e023
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}