From 2f21f7322c5be8c787cae2ae80f9b80a547bab92 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 29 Jan 2018 01:10:33 +0000 Subject: [PATCH] Fix bug with the frame slider --- app/VideoHandle.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/VideoHandle.cpp b/app/VideoHandle.cpp index 5c71453..5bd4a75 100644 --- a/app/VideoHandle.cpp +++ b/app/VideoHandle.cpp @@ -344,7 +344,11 @@ Void VideoHandle::update() m_pcFrameSlider->setMaximum( total_frame_num - 1 ); m_pcFrameNumInfo->setCurrFrameNum( frame_num ); + + + m_pcFrameSlider->blockSignals( true ); // Disable signals otherwise it will loop this function m_pcFrameSlider->setValue( frame_num ); + m_pcFrameSlider->blockSignals( false ); if( m_pcCurrentVideoSubWindow->isPlaying() ) { @@ -708,7 +712,6 @@ Void VideoHandle::seekSliderEvent( Int new_frame_num ) m_pcCurrentVideoSubWindow->seekAbsoluteEvent( (UInt)new_frame_num ); } emit changed(); - // update(); } }