Show selected status visually for AutomationTimeAxisViews
git-svn-id: svn://localhost/ardour2/branches/3.0@7575 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3600f60a03
commit
0bb594471f
@ -811,10 +811,11 @@ Editor::track_selection_changed ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
|
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
|
||||||
if (find (selection->tracks.begin(), selection->tracks.end(), *i) != selection->tracks.end()) {
|
(*i)->set_selected (find (selection->tracks.begin(), selection->tracks.end(), *i) != selection->tracks.end());
|
||||||
(*i)->set_selected (true);
|
|
||||||
} else {
|
TimeAxisView::Children c = (*i)->get_child_list ();
|
||||||
(*i)->set_selected (false);
|
for (TimeAxisView::Children::iterator j = c.begin(); j != c.end(); ++j) {
|
||||||
|
(*j)->set_selected (find (selection->tracks.begin(), selection->tracks.end(), j->get()) != selection->tracks.end());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user