Commit 9aec3094 authored by Till Theato's avatar Till Theato
Browse files

- Set document modified when using spacer tool or moving transitions

- Do not create spacer command if there is no item to move

svn path=/trunk/kdenlive/; revision=4629
parent cfb6133f
......@@ -2969,12 +2969,14 @@ void CustomTrackView::mouseReleaseEvent(QMouseEvent * event)
trackTransitionStartList[m_document->tracksCount() - info.track] = info.startPos.frames(m_document->fps());
}
}
if (!clipsToMove.isEmpty() || !transitionsToMove.isEmpty()) {
InsertSpaceCommand *command = new InsertSpaceCommand(this, clipsToMove, transitionsToMove, track, timeOffset, false);
m_commandStack->push(command);
if (track != -1) track = m_document->tracksCount() - track;
kDebug() << "SPACER TRACK:" << track;
m_document->renderer()->mltInsertSpace(trackClipStartList, trackTransitionStartList, track, timeOffset, GenTime());
setDocumentModified();
}
}
resetSelectionGroup(false);
m_operationMode = NONE;
......@@ -3137,6 +3139,7 @@ void CustomTrackView::mouseReleaseEvent(QMouseEvent * event)
adjustTimelineTransitions(m_scene->editMode(), transition, moveCommand);
new MoveTransitionCommand(this, m_dragItemInfo, info, false, moveCommand);
m_commandStack->push(moveCommand);
setDocumentModified();
}
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment