diff data/fileio/MIDIFileReader.cpp @ 1036:682d64f05e72

Merge
author Chris Cannam
date Mon, 02 Mar 2015 17:21:34 +0000
parents 920699b6989d
children cc27f35aa75c
line wrap: on
line diff
--- a/data/fileio/MIDIFileReader.cpp	Mon Mar 02 17:17:59 2015 +0000
+++ b/data/fileio/MIDIFileReader.cpp	Mon Mar 02 17:21:34 2015 +0000
@@ -36,6 +36,7 @@
 #include "model/NoteModel.h"
 
 #include <QString>
+#include <QFileInfo>
 
 #include <sstream>
 
@@ -932,6 +933,7 @@
     if (!model) {
 	model = new NoteModel(m_mainModelSampleRate, 1, 0.0, 0.0, false);
 	model->setValueQuantization(1.0);
+        model->setObjectName(QFileInfo(m_path).fileName());
     }
 
     const MIDITrack &track = m_midiComposition.find(trackToLoad)->second;