]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.cpp
Fix buttons in capture monitor and crash when changing profile
[kdenlive] / src / mainwindow.cpp
index 8346a8e0544eb9bad6c117b0c390f0598dc40b09..2606751c63e15e9f9325f26cf0506159b0ee750a 100644 (file)
@@ -565,6 +565,7 @@ MainWindow::MainWindow(const QString &MltPath, const KUrl & Url, const QString &
     //connect(m_monitorManager, SIGNAL(connectMonitors()), this, SLOT(slotConnectMonitors()));
     connect(m_monitorManager, SIGNAL(raiseMonitor(AbstractMonitor *)), this, SLOT(slotRaiseMonitor(AbstractMonitor *)));
     connect(m_monitorManager, SIGNAL(checkColorScopes()), this, SLOT(slotUpdateColorScopes()));
+    connect(m_monitorManager, SIGNAL(clearScopes()), this, SLOT(slotClearColorScopes()));
     connect(m_effectList, SIGNAL(addEffect(const QDomElement)), this, SLOT(slotAddEffect(const QDomElement)));
     connect(m_effectList, SIGNAL(reloadEffects()), this, SLOT(slotReloadEffects()));
 
@@ -4222,6 +4223,13 @@ void MainWindow::slotUpdateColorScopes()
     }
 }
 
+void MainWindow::slotClearColorScopes()
+{
+    for (int i = 0; i < m_gfxScopesList.count(); i++) {
+        static_cast<AbstractGfxScopeWidget *>(m_gfxScopesList.at(i)->widget())->slotClearMonitor();
+    }
+}
+
 void MainWindow::slotOpenStopmotion()
 {
     if (m_stopmotion == NULL) {