diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2015-08-04 15:33:44 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2015-08-04 15:33:44 -0500 |
commit | 507006a9a6c3f80f069b45a684796f7ac2953bc5 (patch) | |
tree | 1e2ea9dedfe1aeb7c231f50101c85837b88b510e | |
parent | 3cbd73de498b2136c9821030c41d6861d71c29f1 (diff) |
sort the Stem Export route list
-rw-r--r-- | gtk2_ardour/export_channel_selector.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/export_channel_selector.cc b/gtk2_ardour/export_channel_selector.cc index 64cfe67628..c868d69853 100644 --- a/gtk2_ardour/export_channel_selector.cc +++ b/gtk2_ardour/export_channel_selector.cc @@ -40,6 +40,12 @@ using namespace Glib; using namespace ARDOUR; using namespace PBD; +struct EditorOrderRouteSorter { + bool operator() (boost::shared_ptr<Route> a, boost::shared_ptr<Route> b) { + return a->order_key () < b->order_key (); + } +}; + PortExportChannelSelector::PortExportChannelSelector (ARDOUR::Session * session, ProfileManagerPtr manager) : ExportChannelSelector (session, manager), channels_label (_("Channels:"), Gtk::ALIGN_LEFT), @@ -115,6 +121,8 @@ PortExportChannelSelector::fill_route_list () channel_view.add_route (master); } + routes.sort (EditorOrderRouteSorter ()); + for (RouteList::iterator it = routes.begin(); it != routes.end(); ++it) { if ((*it)->is_master () || (*it)->is_monitor ()) { continue; |