mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
fix last-minute code rearrangement in last commit that broke the intended functionality
This commit is contained in:
parent
e758b01b12
commit
31a760de84
1 changed files with 5 additions and 3 deletions
|
|
@ -1544,8 +1544,6 @@ Editor::set_selection_from_region ()
|
|||
return;
|
||||
}
|
||||
|
||||
selection->set (selection->regions.start(), selection->regions.end_frame());
|
||||
|
||||
/* find all the tracks that have selected regions */
|
||||
|
||||
set<TimeAxisView*> tracks;
|
||||
|
|
@ -1557,7 +1555,11 @@ Editor::set_selection_from_region ()
|
|||
TrackViewList tvl;
|
||||
tvl.insert (tvl.end(), tracks.begin(), tracks.end());
|
||||
|
||||
/* and select them */
|
||||
/* select range (this will clear the region selection) */
|
||||
|
||||
selection->set (selection->regions.start(), selection->regions.end_frame());
|
||||
|
||||
/* and select the tracks */
|
||||
|
||||
selection->set (tvl);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue