Skip to content

Commit

Permalink
Request change in model when dropping a track (#3000)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasp00 authored Sep 4, 2016
1 parent 5f54995 commit 6614f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 6614f56

Please sign in to comment.