13
0

sort the Stem Export route list

This commit is contained in:
Ben Loftis 2015-08-04 15:33:44 -05:00
parent 3cbd73de49
commit 507006a9a6

View File

@ -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;