From 4d1579c77eb80e979aa895020c7d8f5106b0e365 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 12 Jan 2009 20:29:37 +0000 Subject: [PATCH] Small cleanup svn path=/branches/KDE4/; revision=2905 --- src/transitionsettings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transitionsettings.cpp b/src/transitionsettings.cpp index 6c6a91e8..73be9931 100644 --- a/src/transitionsettings.cpp +++ b/src/transitionsettings.cpp @@ -60,16 +60,18 @@ void TransitionSettings::updateProjectFormat(MltVideoProfile profile, Timecode t void TransitionSettings::slotTransitionChanged(bool reinit, bool updateCurrent) { - kDebug() << "// TRANSITION CHANGED, REINIT: " << reinit; QDomElement e = m_usedTransition->toXML().cloneNode().toElement(); if (reinit) { + // Reset the transition parameters to the default one 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 if (!updateCurrent) { + // Transition changed, update parameters dialog //slotUpdateEffectParams(e, e); effectEdit->transferParamDesc(e, m_usedTransition->startPos().frames(KdenliveSettings::project_fps()), m_usedTransition->endPos().frames(KdenliveSettings::project_fps())); } else { + // Same transition, we just want to update the parameters value slotUpdateEffectParams(e, e); } } -- 2.39.2