mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
Fix crash when hiding multiple tracks
Editor::hide_track_in_display() -> EditorRoutes::hide_track_in_display() and ensuing calls to sync the treeview may modify the selection (de-select hidden tracks) and invalidate selection->tracks
This commit is contained in:
parent
019f664356
commit
339c64180e
1 changed files with 4 additions and 0 deletions
|
|
@ -5510,6 +5510,10 @@ Editor::hide_track_in_display (TimeAxisView* tv, bool apply_to_selection)
|
|||
if (!tv) {
|
||||
return;
|
||||
}
|
||||
|
||||
DisplaySuspender ds;
|
||||
PresentationInfo::ChangeSuspender cs;
|
||||
|
||||
if (apply_to_selection) {
|
||||
for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue