diff options
author | Carl Hetherington <carl@carlh.net> | 2009-11-09 23:43:13 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-11-09 23:43:13 +0000 |
commit | da03bc931b4c82497fb4b02003804c18768c56b6 (patch) | |
tree | 12175b6d8f818dde5fa0c93061ad11674f20f642 /gtk2_ardour | |
parent | 498dfebcca3b97cdd7b83444040042fe06626241 (diff) |
Fix update of the editor mixer when its route is removed; this stops routes (and hence their JACK ports) hanging around after deletion in the UI.
git-svn-id: svn://localhost/ardour2/branches/3.0@6049 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 60d6c9a3a4..5b8cb55be8 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4954,7 +4954,13 @@ Editor::remove_route (TimeAxisView *tv) ENSURE_GUI_THREAD(bind (mem_fun(*this, &Editor::remove_route), tv)); TrackViewList::iterator i; + boost::shared_ptr<Route> route; + RouteTimeAxisView* rtav = dynamic_cast<RouteTimeAxisView*> (tv); + if (rtav) { + route = rtav->route (); + } + TimeAxisView* next_tv = 0; if (tv == entered_track) { |