From ca9028970a2eb830c0bdc90a782a8653c10dffa5 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 28 Jun 2011 12:09:29 +0000 Subject: [PATCH] 0021307: EDF PARAVIS: Mismatch in buttons and windows when switching from a component to PARAVIS and back - deactivate desktop's signal during process of module deactivation to prevent false module activation --- src/CAM/CAM_Application.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 59018337c..d60ce80f7 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -387,10 +387,15 @@ bool CAM_Application::activateModule( CAM_Module* mod ) if ( myModule ) { + // VSR: 26/06/2011 bug 0021307: temporarily disable desktop's signals to prevent false module activation + bool signalsBlocked = desktop() && desktop()->signalsBlocked(); + if ( desktop() ) desktop()->blockSignals( true ); if ( !myModule->deactivateModule( activeStudy() ) ) { // .... } + // VSR: 26/06/2011 bug 0021307: enable desktop's signals back + if ( desktop() ) desktop()->blockSignals( signalsBlocked ); } myModule = mod; -- 2.39.2