[vlmc-devel] [PATCH] Use simple disconnect

Yikai Lu luyikei.qmltu at gmail.com
Sat Apr 2 13:32:54 CEST 2016


---
 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 ) ),
-- 
1.9.1



More information about the Vlmc-devel mailing list