[vlmc-devel] Use simple disconnect

Yikai Lu git at videolan.org
Mon Apr 4 10:25:53 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Apr  2 20:32:54 2016 +0900| [2a374eba2695841e3642de0eb58d08904502b28f] | committer: Hugo Beauzée-Luyssen

Use simple disconnect

> https://code.videolan.org/videolan/vlmc/commit/2a374eba2695841e3642de0eb58d08904502b28f
---

 src/Gui/preview/PreviewRuler.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Gui/preview/PreviewRuler.cpp b/src/Gui/preview/PreviewRuler.cpp
index 6fdc15b..e69b3d3 100644
--- a/src/Gui/preview/PreviewRuler.cpp
+++ b/src/Gui/preview/PreviewRuler.cpp
@@ -41,9 +41,7 @@ void
 PreviewRuler::setRenderer( GenericRenderer* renderer )
 {
     if ( m_renderer )
-    {
-        disconnect( m_renderer, SIGNAL( frameChanged(qint64, Vlmc::FrameChangedReason ) ) );
-    }
+        m_renderer->disconnect( this );
     m_renderer = renderer;
 
     connect( m_renderer, SIGNAL( frameChanged( qint64, Vlmc::FrameChangedReason ) ),



More information about the Vlmc-devel mailing list