Update clip length after clearing all notes (#7960)

When clearing notes from a long melody clip in pattern editor, it looks like the clip becomes short, but it actually remains the same length (despite empty), and that affects the length of the whole pattern. This PR fixes this issue.
This commit is contained in:
Alex
2025-06-22 02:53:34 +02:00
committed by GitHub
parent 2806a31e4c
commit 346ee60cd2

View File

@@ -288,6 +288,7 @@ void MidiClip::clearNotes()
instrumentTrack()->unlock();
checkType();
updateLength();
emit dataChanged();
}