13
0

prevent 0-pointer dereference in editor_routes.cc - fixes #5794

This commit is contained in:
Robin Gareus 2013-12-28 16:15:00 +01:00
parent 0f6686eea9
commit 5bc8750f73

View File

@ -4871,8 +4871,10 @@ Editor::add_routes (RouteList& routes)
rtv->view()->RegionViewRemoved.connect (sigc::mem_fun (*this, &Editor::region_view_removed)); rtv->view()->RegionViewRemoved.connect (sigc::mem_fun (*this, &Editor::region_view_removed));
} }
_routes->routes_added (new_views); if (new_views.size() > 0) {
_summary->routes_added (new_views); _routes->routes_added (new_views);
_summary->routes_added (new_views);
}
if (show_editor_mixer_when_tracks_arrive) { if (show_editor_mixer_when_tracks_arrive) {
show_editor_mixer (true); show_editor_mixer (true);