From 104a6f9c5ea4c3dc7d198914c648fd7877f2a53e Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Thu, 17 Apr 2014 15:29:03 +0100 Subject: [PATCH] Disable modules checkbox when its is remove from the subwindow --- source/app/SubWindowHandle.cpp | 1 + source/app/plaYUVerApp.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/source/app/SubWindowHandle.cpp b/source/app/SubWindowHandle.cpp index 5adec30..e51fefa 100644 --- a/source/app/SubWindowHandle.cpp +++ b/source/app/SubWindowHandle.cpp @@ -130,6 +130,7 @@ Void SubWindowHandle::disableModule() if( !m_pcCurrentModule ) return; + m_pcCurrentModule->m_pcAction->setCheckable(false); m_pcCurrentModule->destroy(); m_pcCurrentModule = NULL; refreshFrame(); diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index eadd956..ec82c49 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -544,7 +544,9 @@ void plaYUVerApp::chageSubWindowSelection() if( activeSubWindow() ) { if( m_pcCurrentSubWindow ) + { m_pcCurrentSubWindow->disableModule(); + } // if( m_acPlayingSubWindows.size() < 2 ) // { // playingTimer->stop();