From: eap Date: Thu, 17 May 2012 10:03:59 +0000 (+0000) Subject: 0021581: EDF GEOM: Crash in an application with GEOM only and autocreate option for... X-Git-Tag: V6_5_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_VERAGUI;p=modules%2Fgui.git 0021581: EDF GEOM: Crash in an application with GEOM only and autocreate option for trihedron an observer should be attached before module activation --- diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 91dafbc23..1a38c88e1 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -439,7 +439,6 @@ bool SalomeApp_Study::createDocument( const QString& theStr ) setRoot( aRoot ); bool aRet = CAM_Study::createDocument( theStr ); - emit created( this ); #ifdef WITH_SALOMEDS_OBSERVER myObserver = new Observer_i(myStudyDS,this); @@ -447,6 +446,8 @@ bool SalomeApp_Study::createDocument( const QString& theStr ) myStudyDS->attach(myObserver->_this(),true); #endif + emit created( this ); + return aRet; }