From 4878cfd0ac39f8c6740d5eff36c534a61830c108 Mon Sep 17 00:00:00 2001 From: imn Date: Fri, 19 Feb 2016 15:31:31 +0300 Subject: [PATCH] 0023238: [CEA 1738] OCC Viewer outside SALOME window --- src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx index 389409921..4cd4ff3ae 100644 --- a/src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx +++ b/src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx @@ -2714,7 +2714,8 @@ public: QWidget* wnd = viewMgr->getActiveView(); myResult = viewMgr->getActiveView()->getId(); if ( wnd ) { - wnd->setVisible(myVisible); + if ( !myVisible ) + wnd->setVisible(false); if ( !myVisible && myWidth == 0 && myHeight == 0 ) { myWidth = 1024; myHeight = 768; -- 2.39.2