Make "Clear this track" undoable

Fixes #4375
This commit is contained in:
Hyunin Song
2018-05-28 13:47:53 +09:00
parent daa3f53515
commit 3e8120d532

View File

@@ -1813,6 +1813,7 @@ void TrackOperationsWidget::cloneTrack()
void TrackOperationsWidget::clearTrack()
{
Track * t = m_trackView->getTrack();
t->addJournalCheckPoint();
t->lock();
t->deleteTCOs();
t->unlock();