From c144a2baa2851d92922a74092489cc47d4aecfb8 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 26 Jan 2014 01:10:18 +0100 Subject: [PATCH] Instrument: return true in default implementation of handleMidiEvent() Supress warnings about unhandled MIDI events e.g. on PianoView focus out by returning true in Instrument::handleMidiEvent(). --- include/Instrument.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Instrument.h b/include/Instrument.h index f0ff145c2..0a840daa3 100644 --- a/include/Instrument.h +++ b/include/Instrument.h @@ -101,7 +101,7 @@ public: // MIDI-events inline virtual bool handleMidiEvent( const MidiEvent&, const MidiTime& = MidiTime() ) { - return false; + return true; } virtual QString fullDisplayName() const;