Dear oh dear. Re-fix main fader double click and internal send edit.
authorCarl Hetherington <carl@carlh.net>
Tue, 11 Jan 2011 00:03:12 +0000 (00:03 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 11 Jan 2011 00:03:12 +0000 (00:03 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8500 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/processor_box.cc
libs/gtkmm2ext/pixfader.cc

index 8b4a1fe61eb6db534d20e35478ac9d4fdbe791b0..a2c5f61b244e5c66267ccb85da5a192dba671886 100644 (file)
@@ -1641,10 +1641,10 @@ ProcessorBox::toggle_edit_processor (boost::shared_ptr<Processor> processor)
                }
 
                if (_parent_strip) {
-                       if (boost::dynamic_pointer_cast<Send> (_parent_strip->current_delivery()) == send) {
+                       if (boost::dynamic_pointer_cast<Send> (_parent_strip->current_delivery()) == internal_send) {
                                _parent_strip->revert_to_default_display ();
                        } else {
-                               _parent_strip->show_send (send);
+                               _parent_strip->show_send (internal_send);
                        }
                }
 
index f36cf6ddb2e0b2da7f885c8bd544e11f3be95a65..1d12cb622b592c203e521610e0b9d0a7d7b80132 100644 (file)
@@ -122,6 +122,10 @@ PixFader::on_size_request (GtkRequisition* req)
 bool
 PixFader::on_button_press_event (GdkEventButton* ev)
 {
+       if (ev->type != GDK_BUTTON_PRESS) {
+               return false;
+       }
+       
        switch (ev->button) {
        case 1:
        case 2: