Fix MIDI import panel on file close or switch
Fix end() iterator increment
Fix moc warnings on headers that do not require QObject
Merge pull request #1081 from trig-ger/midi_fixes

Fixes for MIDI import