Show send UI window on edit (#3696)
authorCarl Hetherington <carl@carlh.net>
Mon, 10 Jan 2011 23:58:57 +0000 (23:58 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 10 Jan 2011 23:58:57 +0000 (23:58 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8499 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/processor_box.cc

index a20add97a587815608a6bb3199b3e8e77e112ccd..8b4a1fe61eb6db534d20e35478ac9d4fdbe791b0 100644 (file)
@@ -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)) {