From b7f799b7b2ab79291f404cdfd33c2884d3e2859f Mon Sep 17 00:00:00 2001 From: Colin Fletcher Date: Sat, 6 Jun 2015 15:13:39 +0100 Subject: [PATCH] Exclude inactive tracks & busses from stem export list The exported file is silent, when choosing to export either region contents or track outputs, so there seems no point in making such routes available for stem export at all. Perhaps there's an arguable use case for enabling stem export of inactive tracks, but I can't see that it's worth worrying about for now. --- gtk2_ardour/export_channel_selector.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk2_ardour/export_channel_selector.cc b/gtk2_ardour/export_channel_selector.cc index 159c69eafe..7d6c176f68 100644 --- a/gtk2_ardour/export_channel_selector.cc +++ b/gtk2_ardour/export_channel_selector.cc @@ -647,12 +647,21 @@ TrackExportChannelSelector::fill_list() if ((*it)->is_master () || (*it)->is_monitor ()) { continue; } + if (!(*it)->active ()) { + // don't include inactive busses + continue; + } + // not monitor or master bus add_track (*it); } } for (RouteList::iterator it = routes.begin(); it != routes.end(); ++it) { if (boost::dynamic_pointer_cast(*it)) { + if (!(*it)->active ()) { + // don't include inactive tracks + continue; + } add_track (*it); } }