summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/export_format_dialog.cc7
-rw-r--r--gtk2_ardour/export_format_dialog.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/export_format_dialog.cc b/gtk2_ardour/export_format_dialog.cc
index 61e12822bd..4d87828d6b 100644
--- a/gtk2_ardour/export_format_dialog.cc
+++ b/gtk2_ardour/export_format_dialog.cc
@@ -661,6 +661,8 @@ ExportFormatDialog::update_selection (Glib::RefPtr<Gtk::ListStore> & list, Gtk::
bool selected = selection->is_selected (it);
it->get_value (cols.ptr)->set_selected (selected);
}
+
+ set_codec_quality_selection ();
}
void
@@ -1136,7 +1138,12 @@ ExportFormatDialog::fill_codec_quality_lists (boost::shared_ptr<ARDOUR::HasCodec
row[codec_quality_cols.quality] = (*it)->quality;
row[codec_quality_cols.label] = (*it)->name;
}
+ set_codec_quality_selection ();
+}
+void
+ExportFormatDialog::set_codec_quality_selection ()
+{
for (Gtk::ListStore::Children::iterator it = codec_quality_list->children().begin(); it != codec_quality_list->children().end(); ++it) {
if (it->get_value (codec_quality_cols.quality) == format->codec_quality()) {
codec_quality_combo.set_active (it);
diff --git a/gtk2_ardour/export_format_dialog.h b/gtk2_ardour/export_format_dialog.h
index 40ca8dfe45..6b5fe18fa3 100644
--- a/gtk2_ardour/export_format_dialog.h
+++ b/gtk2_ardour/export_format_dialog.h
@@ -147,6 +147,7 @@ private:
void update_src_quality_selection ();
void update_codec_quality_selection ();
void update_tagging_selection ();
+ void set_codec_quality_selection ();
/*** Encoding options */