]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0021581: EDF GEOM: Crash in an application with GEOM only and autocreate option for... BR_VERAGUI V6_5_BR V6_5_0 V6_5_0b2 V6_5_0b3 V6_5_0p1 V6_5_0rc1 V6_5_0rc2
authoreap <eap@opencascade.com>
Thu, 17 May 2012 10:03:59 +0000 (10:03 +0000)
committereap <eap@opencascade.com>
Thu, 17 May 2012 10:03:59 +0000 (10:03 +0000)
    an observer should be attached before module activation

src/SalomeApp/SalomeApp_Study.cxx

index 91dafbc235e680820dec63cbf7d93ad1e9f14016..1a38c88e12a179a31704ddca75a4d17a7ffa0905 100644 (file)
@@ -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;
 }