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
|
@ -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…
Reference in New Issue
Block a user