From 5097a849bbb8ce9b22fbefa96c3857b6f089856b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 11 Oct 2008 09:41:09 +0000 Subject: [PATCH] fix mixup of input/output selectors after a mixer strip has its Route/IO reset git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3914 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/mixer_strip.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 5d53121d77..7c551a392e 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -309,6 +309,16 @@ MixerStrip::set_route (boost::shared_ptr rt) RouteUI::set_route (rt); + if (input_selector) { + delete input_selector; + input_selector = 0; + } + + if (output_selector) { + delete output_selector; + output_selector = 0; + } + panners.set_io (rt); gpm.set_io (rt); pre_redirect_box.set_route (rt);