We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8ec55 commit 0d871d2Copy full SHA for 0d871d2
src/commands/timelinecommands.cpp
@@ -789,6 +789,12 @@ bool MoveClipCommand::mergeWith(const QUndoCommand *other)
789
if (that->m_undoHelper.affectedTracks() != m_undoHelper.affectedTracks()) {
790
return false;
791
}
792
+ if (that->m_trackDelta || m_trackDelta) {
793
+ // Do not merge move commands if the move is between tracks.
794
+ // In particular, if a clip is moved to a track and then back to the origional track,
795
+ // there is no change and a single undo command is left with nothing to undo.
796
+ return false;
797
+ }
798
auto thisIterator = m_clips.begin();
799
auto thatIterator = that->m_clips.begin();
800
while (thisIterator != m_clips.end() && thatIterator != that->m_clips.end()) {
0 commit comments