]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3044: Update commands status after script loading.
authorvsv <vsv@opencascade.com>
Fri, 6 Dec 2019 10:28:51 +0000 (13:28 +0300)
committervsv <vsv@opencascade.com>
Fri, 6 Dec 2019 10:28:51 +0000 (13:28 +0300)
src/XGUI/XGUI_Workshop.cpp

index 461c756a30460f18960cd9b271c2a568f35ab258..814cf4b1557ae63aa97fdebf4f2428dd79d39cbf 100644 (file)
@@ -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();