summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_format_selector.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-05-08 01:49:35 +0000
committerCarl Hetherington <carl@carlh.net>2012-05-08 01:49:35 +0000
commit075e90e02343de54ece720a88f5d51ee808ee2ea (patch)
tree1f713fac7e00ea08302c40602c4a5f20e27f85ab /gtk2_ardour/export_format_selector.cc
parent3564b9b6bc5caba0a648e093c9c0a3348753f35b (diff)
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
Diffstat (limited to 'gtk2_ardour/export_format_selector.cc')
-rw-r--r--gtk2_ardour/export_format_selector.cc2
1 files changed, 1 insertions, 1 deletions
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);
}