diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-06-06 15:13:39 +0100 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-06-08 11:17:55 +0100 |
commit | b7f799b7b2ab79291f404cdfd33c2884d3e2859f (patch) | |
tree | 7b77eea177ab36d562a3b4b6f2f1721e2c0ed971 /gtk2_ardour/export_channel_selector.cc | |
parent | 8b3c729f2647b78bad4f8c2852de08a8f1a09bab (diff) |
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.
Diffstat (limited to 'gtk2_ardour/export_channel_selector.cc')
-rw-r--r-- | gtk2_ardour/export_channel_selector.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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<AudioTrack>(*it)) { + if (!(*it)->active ()) { + // don't include inactive tracks + continue; + } add_track (*it); } } |