From 3707f5b5c4f04de786d3c55db2bff6a59881d2af Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 1 Aug 2007 13:21:16 +0000 Subject: [PATCH] Override SUIT_Study::Modified method --- src/SalomeApp/SalomeApp_Study.cxx | 10 ++++++++++ src/SalomeApp/SalomeApp_Study.h | 1 + 2 files changed, 11 insertions(+) diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 1fb4d0bdd..7e94340f9 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -308,6 +308,16 @@ bool SalomeApp_Study::isModified() const return isAnyChanged; } +/*! + Set study modified to \a on. + */ +void SalomeApp_Study::Modified() +{ + if(_PTR(Study) aStudy = studyDS()) + aStudy->Modified(); + LightApp_Study::Modified(); +} + /*! \return if data model is saved */ diff --git a/src/SalomeApp/SalomeApp_Study.h b/src/SalomeApp/SalomeApp_Study.h index ef5c127fd..6811d0089 100644 --- a/src/SalomeApp/SalomeApp_Study.h +++ b/src/SalomeApp/SalomeApp_Study.h @@ -51,6 +51,7 @@ public: virtual bool isSaved() const; virtual bool isModified() const; + virtual void Modified(); virtual void addComponent ( const CAM_DataModel* dm); -- 2.39.2