Fix tab duplication when 'Apply' pushed in the MIDI import panel
Fix addition of imported MIDI files to the recent files list
Fix duplicate score name
Remove #ifdef because the 'if' branches become equal
Don't add recent score if it is already last in recent list
Fix empty recent file path: save file before add it to recent list
Fix last session MIDI file path
Merge pull request #1495 from trig-ger/midi_fixes

Fix duplicate score tabs and recent files list for MIDI import