diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-04 18:11:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-04 18:11:34 +0000 |
commit | 6cbc4fed44291211404596b2fd7276fd1145a874 (patch) | |
tree | 161e9a9ad20dbeb8b0ceaa8b021e4f9c06d914d4 /gtk2_ardour/mixer_group_tabs.cc | |
parent | 8f078d7fd40878d08ad4d048f0606a27901c7475 (diff) |
fix up use of selected mixer strips in MixerGroupTabs
git-svn-id: svn://localhost/ardour2/branches/3.0@10443 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_group_tabs.cc')
-rw-r--r-- | gtk2_ardour/mixer_group_tabs.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_group_tabs.cc b/gtk2_ardour/mixer_group_tabs.cc index 6a6149f67f..fa01579f78 100644 --- a/gtk2_ardour/mixer_group_tabs.cc +++ b/gtk2_ardour/mixer_group_tabs.cc @@ -17,6 +17,8 @@ */ +#include <boost/foreach.hpp> + #include "ardour/route_group.h" #include "ardour/session.h" #include "mixer_group_tabs.h" @@ -177,7 +179,12 @@ RouteList MixerGroupTabs::selected_routes () const { RouteList rl; - /* XXX need a foreach here */ + BOOST_FOREACH (RouteUI* r, _mixer->selection().routes) { + boost::shared_ptr<Route> rp = r->route(); + if (rp) { + rl.push_back (rp); + } + } return rl; } |