Don't try to open SendUI for an internal send (#4460).
authorCarl Hetherington <carl@carlh.net>
Wed, 9 Nov 2011 19:25:30 +0000 (19:25 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 9 Nov 2011 19:25:30 +0000 (19:25 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10513 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/processor_box.cc

index bde5fb5e8ca63ced35d7d4dd53feb26f8a631df1..9d6bc106823ff8556dde7cc86a4f3df7a851a8ee 100644 (file)
@@ -1785,8 +1785,10 @@ ProcessorBox::toggle_edit_processor (boost::shared_ptr<Processor> processor)
                        return;
                }
 
-               SendUIWindow* w = new SendUIWindow (send, _session);
-               w->show ();
+               if (boost::dynamic_pointer_cast<InternalSend> (processor) == 0) {
+                       SendUIWindow* w = new SendUIWindow (send, _session);
+                       w->show ();
+               }
 
        } else if ((retrn = boost::dynamic_pointer_cast<Return> (processor)) != 0) {