summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_format_dialog.cc
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2010-11-02 10:58:38 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2010-11-02 10:58:38 +0000
commit2c23733a1d71f3e8e3bff00daa38bb238a372c76 (patch)
tree517150c92f592fef0cf58f0d3cb2d3b2c94bf1e1 /gtk2_ardour/export_format_dialog.cc
parent95e6a3585504cc939581b044dc220595e2d25dd0 (diff)
Fix problem where BWF is shown selected when editing an export format using WAV
git-svn-id: svn://localhost/ardour2/branches/3.0@7947 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/export_format_dialog.cc')
-rw-r--r--gtk2_ardour/export_format_dialog.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/export_format_dialog.cc b/gtk2_ardour/export_format_dialog.cc
index 60a6737656..caf76ac0de 100644
--- a/gtk2_ardour/export_format_dialog.cc
+++ b/gtk2_ardour/export_format_dialog.cc
@@ -242,8 +242,12 @@ ExportFormatDialog::load_state (FormatPtr spec)
}
for (Gtk::ListStore::Children::iterator it = format_list->children().begin(); it != format_list->children().end(); ++it) {
- if (it->get_value (format_cols.ptr)->get_format_id() == spec->format_id()) {
- it->get_value (format_cols.ptr)->set_selected (true);
+ boost::shared_ptr<ARDOUR::ExportFormat> format_in_list = it->get_value (format_cols.ptr);
+ if (format_in_list->get_format_id() == spec->format_id() &&
+ // BWF has the same format id with wav, so we need to check this.
+ format_in_list->has_broadcast_info() == spec->has_broadcast_info()) {
+
+ format_in_list->set_selected (true);
break;
}
}