From f3686926ee3fd4dc63a68eac4d5454aa68396cba Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Thu, 14 Oct 2010 23:28:58 +0000 Subject: [PATCH] Correctly update monitors on clip property change svn path=/trunk/kdenlive/; revision=5005 --- src/monitor.cpp | 7 +++++++ src/monitor.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/monitor.cpp b/src/monitor.cpp index 366d0a2b..60a72c47 100644 --- a/src/monitor.cpp +++ b/src/monitor.cpp @@ -698,6 +698,13 @@ void Monitor::refreshMonitor(bool visible) } } +void Monitor::refreshMonitor() +{ + if (m_isActive) { + render->doRefresh(); + } +} + void Monitor::pause() { if (render == NULL) return; diff --git a/src/monitor.h b/src/monitor.h index c598dffc..0ee47787 100644 --- a/src/monitor.h +++ b/src/monitor.h @@ -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(); -- 2.39.2