diff options
author | Robin Gareus <robin@gareus.org> | 2019-08-24 18:37:28 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-08-24 18:37:28 +0200 |
commit | 7859340191a93c1f36b6dc9b513fa7c70a94cc1b (patch) | |
tree | 3f3db839c0d4836133fcda75fbd33bb02c1a6bdb /gtk2_ardour | |
parent | 629289dc4aa2fb86896ea2c969051bd0f3e4c4c9 (diff) |
Consolidate code, skip editor/mixer update check
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 1693ddae05..8673593392 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -5567,14 +5567,12 @@ Editor::timeaxisview_deleted (TimeAxisView *tv) i = track_views.erase (i); } - /* update whatever the current mixer strip is displaying, if revelant */ - - boost::shared_ptr<Route> route; - - if (rtav) { - route = rtav->route (); + /* Update the route that is shown in the editor-mixer. */ + if (!rtav) { + return; } + boost::shared_ptr<Route> route = rtav->route (); if (current_mixer_strip && current_mixer_strip->route() == route) { TimeAxisView* next_tv; |