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
@ -802,7 +802,7 @@ Editor::set_selected_regionview_from_map_event (GdkEventAny* /*ev*/, StreamView*
|
|||||||
void
|
void
|
||||||
Editor::track_selection_changed ()
|
Editor::track_selection_changed ()
|
||||||
{
|
{
|
||||||
switch (selection->tracks.size()){
|
switch (selection->tracks.size()) {
|
||||||
case 0:
|
case 0:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -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