Fix pasting video only effect on AV clip broken

parent 776d00b4
......@@ -2442,15 +2442,14 @@ void TimelineController::pasteEffects(int targetId)
effects.appendChild(subs.at(0));
}
}
bool result = true;
int insertedEffects = 0;
for (int target : targetIds) {
std::shared_ptr<EffectStackModel> destStack = m_model->getClipEffectStackModel(target);
result = result && destStack->fromXml(effects, undo, redo);
if (!result) {
break;
if (destStack->fromXml(effects, undo, redo)) {
insertedEffects++;
}
}
if (result) {
if (insertedEffects > 0) {
pCore->pushUndo(undo, redo, i18n("Paste effects"));
} else {
pCore->displayMessage(i18n("Cannot paste effect on selected clip"), InformationMessage, 500);
......
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