fix crash when trying to show "controls" of processor w/o controls.
authorRobin Gareus <robin@gareus.org>
Thu, 6 Jun 2013 22:40:47 +0000 (00:40 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 6 Jun 2013 22:40:47 +0000 (00:40 +0200)
gtk2_ardour/processor_box.cc

index 04c261e2e1895da90012117b41bcef1e5697e90d..bae29ae98ab26e05e0f493196b71879702a2b8f5 100644 (file)
@@ -1066,6 +1066,8 @@ ProcessorBox::processor_button_press_event (GdkEventButton *ev, ProcessorEntry*
                if (_session->engine().connected()) {
                        /* XXX giving an error message here is hard, because we may be in the midst of a button press */
 
+                       if (!one_processor_can_be_edited ()) return true;
+
                        if (Keyboard::modifier_state_equals (ev->state, Keyboard::SecondaryModifier)) {
                                generic_edit_processor (processor);
                        } else {