From a14fc8f6bb730ad211f9921d2e56122f154cacf7 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 6 Dec 2019 13:28:51 +0300 Subject: [PATCH] Issue #3044: Update commands status after script loading. --- src/XGUI/XGUI_Workshop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 461c756a3..814cf4b15 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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(); -- 2.39.2