From: jfa Date: Thu, 2 Feb 2006 09:02:04 +0000 (+0000) Subject: Fix for bug 11310: Fatal error creating a Post-Pro presentation, based on data, loade... X-Git-Tag: T_merge_to_HEAD_20060207~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e25d9e3daf02de009c18faabe42fb64e0f82044;p=modules%2Fgui.git Fix for bug 11310: Fatal error creating a Post-Pro presentation, based on data, loaded with python script. --- diff --git a/src/SalomeApp/SalomeApp_DataModel.cxx b/src/SalomeApp/SalomeApp_DataModel.cxx index 81db7b490..5fcae7b7b 100644 --- a/src/SalomeApp/SalomeApp_DataModel.cxx +++ b/src/SalomeApp/SalomeApp_DataModel.cxx @@ -214,6 +214,16 @@ bool SalomeApp_DataModel::open( const QString& name, CAM_Study* study, QStringLi return true; } +//================================================================ +// Function : create +/*! Purpose : Create data model*/ +//================================================================ +bool SalomeApp_DataModel::create( CAM_Study* theStudy ) +{ + update(NULL, (LightApp_Study*)theStudy); + return true; +} + //================================================================ // Function : update /*! Purpose : Update application.*/ diff --git a/src/SalomeApp/SalomeApp_DataModel.h b/src/SalomeApp/SalomeApp_DataModel.h index 7c5c84feb..62e649bc3 100644 --- a/src/SalomeApp/SalomeApp_DataModel.h +++ b/src/SalomeApp/SalomeApp_DataModel.h @@ -33,6 +33,7 @@ public: virtual ~SalomeApp_DataModel(); virtual bool open( const QString&, CAM_Study*, QStringList ); + virtual bool create( CAM_Study* ); virtual void update( LightApp_DataObject* = 0, LightApp_Study* = 0 ); QString getRootEntry( SalomeApp_Study* ) const;