Salome HOME
0023238: [CEA 1738] OCC Viewer outside SALOME window
authorimn <imn@opencascade.com>
Fri, 19 Feb 2016 12:31:31 +0000 (15:31 +0300)
committerimn <imn@opencascade.com>
Fri, 19 Feb 2016 12:31:31 +0000 (15:31 +0300)
src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx

index 389409921f543aa777a474b319c99e54c2b26f54..4cd4ff3ae98aa233ed53135b677e4b14818ed8d1 100644 (file)
@@ -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;