Request change in model when dropping a track (#3000)

This commit is contained in:
Javier Serrano Polo
2016-09-04 00:15:21 +00:00
committed by GitHub
parent 5f54995188
commit 6614f567d7

View File

@@ -2658,9 +2658,9 @@ void TrackView::dropEvent( QDropEvent * de )
// value contains our XML-data so simply create a
// DataFile which does the rest for us...
DataFile dataFile( value.toUtf8() );
m_track->lock();
Engine::mixer()->requestChangeInModel();
m_track->restoreState( dataFile.content().firstChild().toElement() );
m_track->unlock();
Engine::mixer()->doneChangeInModel();
de->accept();
}
}