Commit ff989e5b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Don't corrupt project when adding a title clip and a transition already is in place

parent d08468b7
......@@ -2807,9 +2807,11 @@ void CustomTrackView::dropEvent(QDropEvent * event)
updateTrackDuration(info.track, addCommand);
if (item->baseClip()->isTransparent() && getTransitionItemAtStart(info.startPos, info.track) == NULL) {
// add transparency transition
QDomElement trans = MainWindow::transitions.getEffectByTag("affine", QString()).cloneNode().toElement();
new AddTransitionCommand(this, info, getPreviousVideoTrack(info.track), trans, false, true, addCommand);
// add transparency transition if space is available
if (canBePastedTo(info, TRANSITIONWIDGET)) {
QDomElement trans = MainWindow::transitions.getEffectByTag("affine", QString()).cloneNode().toElement();
new AddTransitionCommand(this, info, getPreviousVideoTrack(info.track), trans, false, true, addCommand);
}
}
item->setSelected(true);
}
......
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