diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-11 11:26:42 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-11 11:26:42 +0000 |
commit | 80afb6e08b52f05d672df2d991265df713792010 (patch) | |
tree | e5b857092ef07feff6b98d645d0d8b50289197e0 /gtk2_ardour/route_time_axis.cc | |
parent | c40437430acf4b65d8acb8b084eae8cd2f6f5402 (diff) |
Don't change playlists of frozen tracks when changing the
playlist of a route group (#4864).
git-svn-id: svn://localhost/ardour2/branches/3.0@12651 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index fc898b8f75..d231442797 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -1544,16 +1544,21 @@ RouteTimeAxisView::use_playlist (RadioMenuItem *item, boost::weak_ptr<Playlist> boost::shared_ptr<RouteList> rl (rg->route_list()); for (RouteList::const_iterator i = rl->begin(); i != rl->end(); ++i) { - if ( (*i) == this->route()) { + if ((*i) == this->route()) { continue; } - + std::string playlist_name = (*i)->name()+group_string+take_name; boost::shared_ptr<Track> track = boost::dynamic_pointer_cast<Track>(*i); if (!track) { continue; } + + if (track->freeze_state() == Track::Frozen) { + /* Don't change playlists of frozen tracks */ + continue; + } boost::shared_ptr<Playlist> ipl = session()->playlists->by_name(playlist_name); if (!ipl) { |