]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_Workshop.cpp
Salome HOME
Issue #3100: Restore state of hidden faces on Hide/Show an object
[modules/shaper.git] / src / XGUI / XGUI_Workshop.cpp
index 461c756a30460f18960cd9b271c2a568f35ab258..56e784cb5a590a093d6d5273d053e6db3255b4d4 100644 (file)
@@ -866,7 +866,7 @@ void XGUI_Workshop::onOperationStopped(ModuleBase_Operation* theOperation)
 
   if (Config_PropManager::boolean("Windows", "use_hide_faces_panel")) {
     if (!theOperation->isHideFacesVisible())
-      myFacesPanel->hide();
+      myFacesPanel->close();
   }
 }
 
@@ -1044,6 +1044,8 @@ void XGUI_Workshop::onNew()
   QMdiSubWindow* aWnd = myMainWindow->viewer()->createView();
   aWnd->showMaximized();
   updateCommandStatus();
+  PyConsole_Console* aConsole = myMainWindow->pythonConsole();
+  connect(aConsole, SIGNAL(scriptLoaded()), SLOT(updateCommandStatus()));
 #endif
   myContextMenuMgr->connectViewer();
   QApplication::restoreOverrideCursor();
@@ -1580,7 +1582,7 @@ void XGUI_Workshop::showPanel(QDockWidget* theDockWidget)
   // in order to operation manager could process key events of the panel.
   // otherwise they are ignored. It happens only if the same(activateWindow) is
   // not happened by property panel activation(e.g. resume operation of Sketch)
-  ModuleBase_Tools::setFocus(theDockWidget, "XGUI_Workshop::showPanel()");
+  //ModuleBase_Tools::setFocus(theDockWidget, "XGUI_Workshop::showPanel()");
 }
 
 //******************************************************