]> git.sesse.net Git - kdenlive/blobdiff - src/transitionsettings.cpp
Fix error in transition handling (when switching transition type)
[kdenlive] / src / transitionsettings.cpp
index d35798dfd5087af344caa26ef9a5233833f80292..18ac2bc136cda0fbcea06018c4118aecb6f4ba1f 100644 (file)
@@ -62,7 +62,7 @@ void TransitionSettings::updateProjectFormat(MltVideoProfile profile, Timecode t
 void TransitionSettings::slotTransitionChanged(bool reinit) {
     QDomElement e = m_usedTransition->toXML().cloneNode().toElement();
     if (reinit) {
-        QDomElement newTransition = MainWindow::transitions.getEffectByName(ui.transitionList->currentText());
+        QDomElement newTransition = MainWindow::transitions.getEffectByName(ui.transitionList->currentText()).cloneNode().toElement();
         slotUpdateEffectParams(e, newTransition);
         emit transferParamDesc(newTransition, m_usedTransition->startPos().frames(KdenliveSettings::project_fps()), m_usedTransition->endPos().frames(KdenliveSettings::project_fps()));
     } else {