From f6e12d421080d2cc08a9cc9f7b4f834bd82b11e4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 10 Jan 2011 23:58:57 +0000 Subject: [PATCH] Show send UI window on edit (#3696) git-svn-id: svn://localhost/ardour2/branches/3.0@8499 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/processor_box.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index a20add97a5..8b4a1fe61e 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -1621,6 +1621,7 @@ void ProcessorBox::toggle_edit_processor (boost::shared_ptr processor) { boost::shared_ptr send; + boost::shared_ptr internal_send; boost::shared_ptr retrn; boost::shared_ptr plugin_insert; boost::shared_ptr port_insert; @@ -1633,7 +1634,7 @@ ProcessorBox::toggle_edit_processor (boost::shared_ptr processor) } } - if ((send = boost::dynamic_pointer_cast (processor)) != 0) { + if ((internal_send = boost::dynamic_pointer_cast (processor)) != 0) { if (!_session->engine().connected()) { return; @@ -1647,6 +1648,15 @@ ProcessorBox::toggle_edit_processor (boost::shared_ptr processor) } } + } else if ((send = boost::dynamic_pointer_cast (processor)) != 0) { + + if (!_session->engine().connected()) { + return; + } + + SendUIWindow* w = new SendUIWindow (send, _session); + w->show_all (); + } else if ((retrn = boost::dynamic_pointer_cast (processor)) != 0) { if (boost::dynamic_pointer_cast (retrn)) {