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
This commit is contained in:
Paul Davis 2009-03-11 19:15:47 +00:00
parent 869a547879
commit 463b95ec65

View file

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