Skip to content

Commit

Permalink
Use remove() instead of close() to solve problem of midi clip playing…
Browse files Browse the repository at this point in the history
… after deletion
  • Loading branch information
regulus79 committed Sep 23, 2024
1 parent 858330a commit e1269e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/gui/clips/AutomationClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,9 @@ bool AutomationClipView::splitClip(const TimePos pos)
rightClip->movePosition(splitPos);
rightClip->changeLength(m_initialClipEnd - splitPos);

remove();

m_clip->getTrack()->restoreJournallingState();
close();
return true;
}

Expand Down
3 changes: 2 additions & 1 deletion src/gui/clips/MidiClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,9 @@ bool MidiClipView::splitClip(const TimePos pos)
rightClip->movePosition(splitPos);
rightClip->updateLength();

remove();

m_clip->getTrack()->restoreJournallingState();
close();
return true;
}

Expand Down

0 comments on commit e1269e7

Please sign in to comment.