]> git.sesse.net Git - kdenlive/commitdiff
Fix timeline position not updated in transition settings when creating a new transition
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 23 Oct 2012 21:13:57 +0000 (23:13 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 23 Oct 2012 21:13:57 +0000 (23:13 +0200)
src/transitionsettings.cpp

index 2f3b9edad99ab5d0937b92c486d1b8364186b421..312cf60d73cf6d7d6d744dc463e48fdaeb201c7c 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
-                          effecstackedit.h  -  description
+                          effecstackedit.cpp  -  description
                              -------------------
     begin                : Mar 15 2008
     copyright            : (C) 2008 by Marco Gittler
@@ -110,9 +110,12 @@ void TransitionSettings::slotTransitionChanged(bool reinit, bool updateCurrent)
     QDomElement e = m_usedTransition->toXML().cloneNode().toElement();
     if (reinit) {
         // Reset the transition parameters to the default one
+        disconnect(m_effectEdit->monitor(), SIGNAL(renderPosition(int)), this, SLOT(slotRenderPos(int)));
         QDomElement newTransition = MainWindow::transitions.getEffectByName(transitionList->currentText()).cloneNode().toElement();
         slotUpdateEffectParams(e, newTransition);
         m_effectEdit->transferParamDesc(newTransition, m_usedTransition->info(), false);
+       if (m_effectEdit->needsMonitorEffectScene())
+           connect(m_effectEdit->monitor(), SIGNAL(renderPosition(int)), this, SLOT(slotRenderPos(int)));
     } else if (!updateCurrent) {
         // Transition changed, update parameters dialog
         //slotUpdateEffectParams(e, e);