do not show panner GUI in external send UI, to avoid confusion (#4531)
[ardour.git] / gtk2_ardour / export_format_selector.cc
index 002edaf50c313af8cb00501d18e4769e9f1366f8..d3ffce936a67867618724c6df17533f4f602ebfe 100644 (file)
@@ -50,6 +50,7 @@ ExportFormatSelector::ExportFormatSelector () :
        /* Format combo */
 
        format_list = Gtk::ListStore::create (format_cols);
+        format_list->set_sort_column (format_cols.label, Gtk::SORT_ASCENDING);
        format_combo.set_model (format_list);
        format_combo.pack_start (format_cols.label);
        format_combo.set_active (0);
@@ -65,7 +66,8 @@ ExportFormatSelector::~ExportFormatSelector ()
 void
 ExportFormatSelector::set_state (ARDOUR::ExportProfileManager::FormatStatePtr const state_, ARDOUR::Session * session_)
 {
-       session = session_;
+       SessionHandlePtr::set_session (session_);
+
        state = state_;
 
        update_format_list ();
@@ -141,7 +143,7 @@ int
 ExportFormatSelector::open_edit_dialog (bool new_dialog)
 {
        ExportFormatDialog dialog (state->format, new_dialog);
-       dialog.set_session (session);
+       dialog.set_session (_session);
        Gtk::ResponseType response = (Gtk::ResponseType) dialog.run();
        if (response == Gtk::RESPONSE_APPLY) {
                update_format_description ();