From 463b95ec658d5ff88c48f6bd09dc058d20e80c7a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 11 Mar 2009 19:15:47 +0000 Subject: [PATCH] don't crash if there's no editor mixer and we remove a route git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4793 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_route_list.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_route_list.cc b/gtk2_ardour/editor_route_list.cc index f11970c84d..923e3082a8 100644 --- a/gtk2_ardour/editor_route_list.cc +++ b/gtk2_ardour/editor_route_list.cc @@ -157,7 +157,7 @@ Editor::remove_route (TimeAxisView *tv) } } - if (current_mixer_strip->route() == route) { + if (current_mixer_strip && (current_mixer_strip->route() == route)) { if (next_tv) { set_selected_mixer_strip (*next_tv); -- 2.30.2