From d09343039a019afeb0d45b851eaead6f50f3678c Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 25 Oct 2011 06:06:20 +0000 Subject: [PATCH] 0021373: [CEA] missing some contextual menu 0021307: EDF PARAVIS: Mismatch in buttons and windows when switching from a component to PARAVIS and back (replace previous fix) --- src/salomegui/BL_SalomeGui.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/salomegui/BL_SalomeGui.cxx b/src/salomegui/BL_SalomeGui.cxx index 7e03b52..d1518ee 100644 --- a/src/salomegui/BL_SalomeGui.cxx +++ b/src/salomegui/BL_SalomeGui.cxx @@ -121,8 +121,8 @@ BL::SalomeGui::onWindowActivated( SUIT_ViewWindow* svw) if (_viewWin) // Be sure to have a _viewWindow if (svw->getId() == _viewWin->getId()) // Same Id ? - if (getApp()->activeModule() && getApp()->activeModule()->moduleName().compare("JobManager") != 0) // JobManager already activated ? - getApp()->activateModule("JobManager"); + if (!getApp()->activeModule() || getApp()->activeModule()->moduleName() != "JobManager") // JobManager already activated ? + if ( !getApp()->activateModule("JobManager") ) return; } // --- Export the module -- 2.39.2