From b67be86cbff5efe1fff35ca86a216a1e63e214d7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 10 Jan 2011 19:36:00 +0000 Subject: [PATCH] Remove erroneous handling of input IO for sends, which don't have them. Fixes #3694. git-svn-id: svn://localhost/ardour2/branches/3.0@8493 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/send_ui.cc | 12 ++---------- gtk2_ardour/send_ui.h | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/gtk2_ardour/send_ui.cc b/gtk2_ardour/send_ui.cc index 490d99867c..1c668bd2ad 100644 --- a/gtk2_ardour/send_ui.cc +++ b/gtk2_ardour/send_ui.cc @@ -41,6 +41,8 @@ SendUI::SendUI (Gtk::Window* parent, boost::shared_ptr s, Session* session , _gpm (session, 250) , _panners (session) { + assert (_send); + _panners.set_panner (s->panner()); _gpm.set_controls (boost::shared_ptr(), s->meter(), s->amp()); @@ -63,7 +65,6 @@ SendUI::SendUI (Gtk::Window* parent, boost::shared_ptr s, Session* session _send->set_metering (true); - _send->input()->changed.connect (connections, invalidator (*this), ui_bind (&SendUI::ins_changed, this, _1, _2), gui_context()); _send->output()->changed.connect (connections, invalidator (*this), ui_bind (&SendUI::outs_changed, this, _1, _2), gui_context()); _panners.set_width (Wide); @@ -88,15 +89,6 @@ SendUI::~SendUI () fast_screen_update_connection.disconnect(); } -void -SendUI::ins_changed (IOChange change, void* /*ignored*/) -{ - ENSURE_GUI_THREAD (*this, &SendUI::ins_changed, change, ignored) - if (change.type & IOChange::ConfigurationChanged) { - _panners.setup_pan (); - } -} - void SendUI::outs_changed (IOChange change, void* /*ignored*/) { diff --git a/gtk2_ardour/send_ui.h b/gtk2_ardour/send_ui.h index 171b913702..c32068ee47 100644 --- a/gtk2_ardour/send_ui.h +++ b/gtk2_ardour/send_ui.h @@ -54,7 +54,6 @@ class SendUI : public Gtk::HBox sigc::connection screen_update_connection; sigc::connection fast_screen_update_connection; - void ins_changed (ARDOUR::IOChange, void*); void outs_changed (ARDOUR::IOChange, void*); PBD::ScopedConnectionList connections; };