X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSalomeApp%2FSalomeApp_Study.cxx;h=ab6166997d6d3e58ccdbaa1433310d69d15368c4;hb=6b5646865f62cac73f4f423e16871b1cdf16aeb5;hp=2934889368ae8446a0f7c327f85641c628322024;hpb=a5e5a02b5408173a0b0fae063d216dcac5f9f81d;p=modules%2Fgui.git diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 293488936..ab6166997 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -49,7 +49,6 @@ #ifndef DISABLE_PYCONSOLE #include "SalomeApp_PyInterp.h" // WARNING! This include must be the first! - #include #endif #include "utilities.h" @@ -741,8 +740,7 @@ void SalomeApp_Study::closeDocument(bool permanently) desk->blockSignals( isBlocked ); #ifndef DISABLE_PYCONSOLE SalomeApp_Application* app = dynamic_cast( application() ); - if( app->pythonConsole() ) - app->pythonConsole()->getInterp()->destroy(); + app->getPyInterp()->destroy(); #endif } SALOMEDSClient_Study* aStudy = 0;