From 412cd8ccb77ddd367b2eb9359a09a4c37824f76b Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Mon, 7 May 2018 22:10:35 +0100 Subject: [PATCH] Fix problem with frame swapping in modules --- app/ModulesHandle.cpp | 1 + app/VideoSubWindow.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ModulesHandle.cpp b/app/ModulesHandle.cpp index 4af7f55..f2ebef4 100644 --- a/app/ModulesHandle.cpp +++ b/app/ModulesHandle.cpp @@ -598,6 +598,7 @@ void ModulesHandle::swapModulesWindowsIf( CalypAppModuleIf* pcCurrModuleIf ) VideoSubWindow* auxWindowHandle = pcCurrModuleIf->m_pcSubWindow[0]; pcCurrModuleIf->m_pcSubWindow[0] = pcCurrModuleIf->m_pcSubWindow[1]; pcCurrModuleIf->m_pcSubWindow[1] = auxWindowHandle; + pcCurrModuleIf->m_pcDisplaySubWindow->updateVideoWindowInfo(); pcCurrModuleIf->apply(); } } diff --git a/app/VideoSubWindow.h b/app/VideoSubWindow.h index 9ff722b..8fb4054 100644 --- a/app/VideoSubWindow.h +++ b/app/VideoSubWindow.h @@ -110,6 +110,8 @@ public: VideoSubWindow( enum VideoSubWindowCategories category, QWidget* parent = 0 ); ~VideoSubWindow(); + void updateVideoWindowInfo(); + bool loadFile( QString cFilename, bool bForceDialog = false ); bool loadFile( CalypFileInfo* streamInfo ); void loadAll(); @@ -200,7 +202,6 @@ private: * zoom to fit */ void scaleView( const QSize& size, QPoint center = QPoint() ); - void updateVideoWindowInfo(); QSize getScrollSize();