From: Alexey Kondratyev Date: Mon, 8 Nov 2021 12:14:14 +0000 (+0300) Subject: Add property for checking in Shaper. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c4dde4bb65cd11d547a7f7fd75a0886e867d374d;p=modules%2Fgui.git Add property for checking in Shaper. --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index aedddec2a..a4a26f4a4 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -1005,7 +1005,12 @@ void SalomeApp_Application::onLoadScript( ) PyConsole_Console* pyConsole = pythonConsole(); if ( pyConsole ) - pyConsole->exec( command ); + { + std::string aProperty("IsLoadedScript"); + setProperty(aProperty.c_str(), true); + pyConsole->exec(command); + setProperty(aProperty.c_str(), false); + } #endif } }