mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Revert "Editor does not need to reset track/stripable selection, since Selection already maintains that itself"
This reverts commit 57652d7d50f706e2f0e525c6f48c1fc7830cf222.
This commit is contained in:
parent
0cd60747a5
commit
78d02eb620
1 changed files with 19 additions and 0 deletions
|
|
@ -1407,6 +1407,25 @@ Editor::set_session (Session *t)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* catch up on selection of stripables (other selection state is lost
|
||||||
|
* when a session is closed
|
||||||
|
*/
|
||||||
|
|
||||||
|
StripableList sl;
|
||||||
|
TrackViewList tl;
|
||||||
|
_session->get_stripables (sl);
|
||||||
|
for (StripableList::const_iterator s = sl.begin(); s != sl.end(); ++s) {
|
||||||
|
if ((*s)->presentation_info().selected()) {
|
||||||
|
RouteTimeAxisView* rtav = get_route_view_by_route_id ((*s)->id());
|
||||||
|
if (rtav) {
|
||||||
|
tl.push_back (rtav);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!tl.empty()) {
|
||||||
|
selection->set (tl);
|
||||||
|
}
|
||||||
|
|
||||||
/* register for undo history */
|
/* register for undo history */
|
||||||
_session->register_with_memento_command_factory(id(), this);
|
_session->register_with_memento_command_factory(id(), this);
|
||||||
_session->register_with_memento_command_factory(_selection_memento->id(), _selection_memento);
|
_session->register_with_memento_command_factory(_selection_memento->id(), _selection_memento);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue