]> git.sesse.net Git - kdenlive/commitdiff
Don't send effect change when simply opening the effect in effectstack
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 16 Nov 2010 21:25:40 +0000 (21:25 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 16 Nov 2010 21:25:40 +0000 (21:25 +0000)
svn path=/trunk/kdenlive/; revision=5102

src/keyframeedit.cpp
src/keyframeedit.h

index b5838df4336a059cd4c4a64b8f97d4f3a04782c6..6085a27f554bae1da7c11b6e343b88fedf055a76 100644 (file)
@@ -408,11 +408,11 @@ void KeyframeEdit::slotResetKeyframe()
     }
 }
 
-void KeyframeEdit::slotUpdateVisibleParameter(int id)
+void KeyframeEdit::slotUpdateVisibleParameter(int id, bool update)
 {
     for (int i = 0; i < m_params.count(); ++i)
         m_params[i].setAttribute("intimeline", (i == id ? "1" : "0"));
-    emit parameterChanged();
+    if (update) emit parameterChanged();
 }
 
 bool KeyframeEdit::isVisibleParam(const QString& name)
@@ -436,7 +436,7 @@ void KeyframeEdit::checkVisibleParam()
             return;
     }
 
-    slotUpdateVisibleParameter(0);
+    slotUpdateVisibleParameter(0, false);
     QRadioButton *radio = static_cast<QRadioButton*>(m_slidersLayout->itemAtPosition(0, 1)->widget());
     if (radio)
         radio->setChecked(true);
index 7594c44f57be6942ed90a493a3f04813f1eb8861..b804da41a1f7b80bd2bab06bc86f28472fc19217 100644 (file)
@@ -127,7 +127,7 @@ private slots:
     void slotResetKeyframe();
 
     /** @brief Makes the parameter at column @param id the visible (in timeline) one. */
-    void slotUpdateVisibleParameter(int id);
+    void slotUpdateVisibleParameter(int id, bool update = true);
 
 signals:
     void parameterChanged();