]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Invoke closeStudy() method of Python GUI module, when study is closed.
authorvsr <vsr@opencascade.com>
Wed, 19 Nov 2014 13:56:50 +0000 (16:56 +0300)
committervsr <vsr@opencascade.com>
Wed, 19 Nov 2014 13:56:50 +0000 (16:56 +0300)
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.h

index 4b73279a700c3c34c38c8323852d078342d20d0c..d19f2ab5eed9aa5e526c53912d029703951396c6 100644 (file)
@@ -246,6 +246,18 @@ void SALOME_PYQT_Module::preferencesChanged( const QString& section, const QStri
   myHelper->preferencesChanged( section, parameter );
 }
 
+/*!
+  \brief Called when study is closed
+  \param study study being closed
+  \sa PyModuleHelper::studyClosed()
+*/
+void SALOME_PYQT_Module::studyClosed( SUIT_Study* study )
+{
+  // call helper
+  myHelper->modelClosed( study );
+  SalomeApp_Module::studyClosed( study );
+}
+
 /*!
   \brief Test if object \a what can be dragged by the user.
   \param what data object being tested
index dbe410ca8704b0a5c0763b11bcde7bff1554fc91..3e483dfec592de75fcbd73c5c0ef1a11895f7721 100644 (file)
@@ -53,6 +53,7 @@ public:
   void            contextMenuPopup( const QString&, QMenu*, QString& );
   void            createPreferences();
   void            preferencesChanged( const QString&, const QString& );
+  void            studyClosed( SUIT_Study* );
 
   // drag-n-drop support
   bool            isDraggable( const SUIT_DataObject* ) const;