]> git.sesse.net Git - kdenlive/commitdiff
Correctly update monitors on clip property change
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 14 Oct 2010 23:28:58 +0000 (23:28 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 14 Oct 2010 23:28:58 +0000 (23:28 +0000)
svn path=/trunk/kdenlive/; revision=5005

src/monitor.cpp
src/monitor.h

index 366d0a2b797f29b9cd954d66b7db56ec6d93d508..60a72c47da71ba878da96ef0eb10349d8571c947 100644 (file)
@@ -698,6 +698,13 @@ void Monitor::refreshMonitor(bool visible)
     }
 }
 
+void Monitor::refreshMonitor()
+{
+    if (m_isActive) {
+        render->doRefresh();
+    }
+}
+
 void Monitor::pause()
 {
     if (render == NULL) return;
index c598dffc247527acb4e8310b76c446d824453aaa..0ee477871b1631d9f51713f862e437df117207bf 100644 (file)
@@ -162,7 +162,8 @@ private slots:
 public slots:
     void slotOpenFile(const QString &);
     void slotSetXml(DocClipBase *clip, QPoint zone = QPoint(), const int position = -1);
-    void refreshMonitor(bool visible = true);
+    void refreshMonitor(bool visible);
+    void refreshMonitor();
     void slotSeek(int pos);
     void stop();
     void start();