From 266030b79c19c144cc093d69ee57117f742f8347 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 26 Jun 2012 20:49:52 +0000 Subject: [PATCH] some generic midi debugging plus an assert git-svn-id: svn://localhost/ardour2/branches/3.0@12950 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/generic_midi/midicontrollable.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/surfaces/generic_midi/midicontrollable.cc b/libs/surfaces/generic_midi/midicontrollable.cc index f866bab2bb..f721e7fbbc 100644 --- a/libs/surfaces/generic_midi/midicontrollable.cc +++ b/libs/surfaces/generic_midi/midicontrollable.cc @@ -210,6 +210,7 @@ MIDIControllable::lookup_controllable() void MIDIControllable::drop_controllable () { + cerr << "removed controllable\n"; controllable_death_connection.disconnect (); controllable = 0; } @@ -243,6 +244,8 @@ MIDIControllable::midi_sense_controller (Parser &, EventTwoBytes *msg) } } + assert (controllable); + if (controllable->touching()) { return; // to prevent feedback fights when e.g. dragging a UI slider }