From d06f333a6e0333b404a20edc0a50ec05a1160871 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 5 Apr 2014 14:34:47 +0100 Subject: [PATCH] Change the update behavious of properties side bar in the main app --- source/app/plaYUVerApp.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index 27d9992..b6dbc59 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -225,7 +225,11 @@ void plaYUVerApp::updateProperties() { m_pcStreamProperties->setData( m_pcCurrentSubWindow->getInputStream() ); m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() ); - //m_pcPropertiesSidebar->setSelection( iface->currentViewArea()->selectedArea() ); + } + else + { + m_pcStreamProperties->setData( m_pcCurrentSubWindow->getInputStream() ); + m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() ); } } @@ -465,11 +469,14 @@ void plaYUVerApp::chageSubWindowSelection() m_pcFrameSlider->setMaximum( activeSubWindow()->getInputStream()->getFrameNum() - 1 ); m_pcFrameSlider->setValue( activeSubWindow()->getInputStream()->getCurrFrameNum() ); m_pcCurrentSubWindow = activeSubWindow(); - updateProperties(); + m_pcStreamProperties->setData( m_pcCurrentSubWindow->getInputStream() ); + m_pcFrameProperties->setData( m_pcCurrentSubWindow->getInputStream()->getCurrFrame() ); } else { m_pcCurrentSubWindow = NULL; + m_pcStreamProperties->setData( NULL ); + m_pcFrameProperties->setData( NULL ); } updateMenus(); createStatusBar();