diff data/fileio/MIDIFileReader.cpp @ 1056:c4898e57eea5 tonioni

Merge from default branch
author Chris Cannam
date Mon, 23 Mar 2015 10:04:48 +0000
parents 920699b6989d
children cc27f35aa75c
line wrap: on
line diff
--- a/data/fileio/MIDIFileReader.cpp	Mon Nov 10 09:19:49 2014 +0000
+++ b/data/fileio/MIDIFileReader.cpp	Mon Mar 23 10:04:48 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;