diff options
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 1 | ||||
-rw-r--r-- | gtk2_ardour/editor.cc | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 09f2e409b1..92af663e76 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -332,6 +332,7 @@ AutomationTimeAxisView::~AutomationTimeAxisView () cleanup_gui_properties (); } delete _view; + CatchDeletion (this); } void diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index fc74837739..1693ddae05 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -5543,6 +5543,11 @@ Editor::timeaxisview_deleted (TimeAxisView *tv) ENSURE_GUI_THREAD (*this, &Editor::timeaxisview_deleted, tv); + if (dynamic_cast<AutomationTimeAxisView*> (tv)) { + selection->remove (tv); + return; + } + RouteTimeAxisView* rtav = dynamic_cast<RouteTimeAxisView*> (tv); _routes->route_removed (tv); |