From 7859340191a93c1f36b6dc9b513fa7c70a94cc1b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 24 Aug 2019 18:37:28 +0200 Subject: [PATCH] Consolidate code, skip editor/mixer update check --- gtk2_ardour/editor.cc | 10 ++++------ 1 file 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; - - if (rtav) { - route = rtav->route (); + /* Update the route that is shown in the editor-mixer. */ + if (!rtav) { + return; } + boost::shared_ptr route = rtav->route (); if (current_mixer_strip && current_mixer_strip->route() == route) { TimeAxisView* next_tv;