openMidiFile should return a "bool" indicating success.
Very old bug: track# is never set, deletes the wrong track.
Update QMidi.