Fix crash when selected automation-lane is removed
authorRobin Gareus <robin@gareus.org>
Sat, 24 Aug 2019 16:21:08 +0000 (18:21 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 24 Aug 2019 16:24:21 +0000 (18:24 +0200)
commit629289dc4aa2fb86896ea2c969051bd0f3e4c4c9
tree1ffe5ea584eea8e737a92df15eae1a3871d925e6
parent9ce5184993c1b571981138f1dd0dfb80c9fcf028
Fix crash when selected automation-lane is removed

When a plugin is deleted, automation-lanes of the given plugin
are removed, but previously a pointed to the deleted lane remained
in the selection.

This caused crashes later when the track selection is used. e.g.
during sensitize_the_right_region_actions()

Note that ~TimeAxisView() also emits CatchDeletion (this);
however "this" fails to be dynamic_cast<AutomationTimeAxisView*>
because that d'tor has already been completed.
gtk2_ardour/automation_time_axis.cc
gtk2_ardour/editor.cc