From 6614f567d705fa968fc0e8384f1ed33c49546a6f Mon Sep 17 00:00:00 2001 From: Javier Serrano Polo Date: Sun, 4 Sep 2016 00:15:21 +0000 Subject: [PATCH] Request change in model when dropping a track (#3000) --- src/core/Track.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Track.cpp b/src/core/Track.cpp index b9afa413c84..e19130e22e3 100644 --- a/src/core/Track.cpp +++ b/src/core/Track.cpp @@ -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(); } }