From 075e90e02343de54ece720a88f5d51ee808ee2ea Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 8 May 2012 01:49:35 +0000 Subject: 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 --- gtk2_ardour/export_format_selector.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk2_ardour/export_format_selector.cc') diff --git a/gtk2_ardour/export_format_selector.cc b/gtk2_ardour/export_format_selector.cc index d3ffce936a..146b31ab51 100644 --- a/gtk2_ardour/export_format_selector.cc +++ b/gtk2_ardour/export_format_selector.cc @@ -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); } -- cgit v1.2.3