Consolidate code, skip editor/mixer update check

This commit is contained in:
Robin Gareus 2019-08-24 18:37:28 +02:00
parent 629289dc4a
commit 7859340191
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 6 deletions

View File

@ -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;