From: ptv Date: Thu, 10 Nov 2005 12:09:18 +0000 (+0000) Subject: additional protection to avoid wrong study pointer if model was closed and new model... X-Git-Tag: V3_1_0a3~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=794781ad568f67d7f06264dc1241de8f0ad075fc;p=modules%2Fgui.git additional protection to avoid wrong study pointer if model was closed and new model created in same module --- diff --git a/src/LightApp/LightApp_Module.cxx b/src/LightApp/LightApp_Module.cxx index 54835f757..b3f1428cb 100644 --- a/src/LightApp/LightApp_Module.cxx +++ b/src/LightApp/LightApp_Module.cxx @@ -343,7 +343,11 @@ void LightApp_Module::startOperation( const int id ) } if( op ) + { + // be sure that operation has correct study pointer + op->setStudy( application() ? application()->activeStudy() : 0 ); op->start(); + } } /*!