diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-10 23:58:57 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-10 23:58:57 +0000 |
commit | f6e12d421080d2cc08a9cc9f7b4f834bd82b11e4 (patch) | |
tree | 48d83f5e103f4077fc5b2fd853698194f723d00e /gtk2_ardour/processor_box.cc | |
parent | 51a3dce3e8d650b0311d6b0679833a2fd460e73b (diff) |
Show send UI window on edit (#3696)
git-svn-id: svn://localhost/ardour2/branches/3.0@8499 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 12 |
1 files changed, 11 insertions, 1 deletions
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> processor) { boost::shared_ptr<Send> send; + boost::shared_ptr<InternalSend> internal_send; boost::shared_ptr<Return> retrn; boost::shared_ptr<PluginInsert> plugin_insert; boost::shared_ptr<PortInsert> port_insert; @@ -1633,7 +1634,7 @@ ProcessorBox::toggle_edit_processor (boost::shared_ptr<Processor> processor) } } - if ((send = boost::dynamic_pointer_cast<Send> (processor)) != 0) { + if ((internal_send = boost::dynamic_pointer_cast<InternalSend> (processor)) != 0) { if (!_session->engine().connected()) { return; @@ -1647,6 +1648,15 @@ ProcessorBox::toggle_edit_processor (boost::shared_ptr<Processor> processor) } } + } else if ((send = boost::dynamic_pointer_cast<Send> (processor)) != 0) { + + if (!_session->engine().connected()) { + return; + } + + SendUIWindow* w = new SendUIWindow (send, _session); + w->show_all (); + } else if ((retrn = boost::dynamic_pointer_cast<Return> (processor)) != 0) { if (boost::dynamic_pointer_cast<InternalReturn> (retrn)) { |