From ce598993af32c3f155d1f5b71728b7fa55f0caa7 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 17 May 2012 10:03:59 +0000 Subject: [PATCH] 0021581: EDF GEOM: Crash in an application with GEOM only and autocreate option for trihedron an observer should be attached before module activation --- src/SalomeApp/SalomeApp_Study.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2