]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix of INTPAL0052217: TC7.3.0:SIGSEGV when update study in NoteBook
authorakl <akl@opencascade.com>
Tue, 10 Dec 2013 11:24:50 +0000 (11:24 +0000)
committerakl <akl@opencascade.com>
Tue, 10 Dec 2013 11:24:50 +0000 (11:24 +0000)
src/LightApp/LightApp_Application.cxx
src/LightApp/LightApp_Application.h

index f1f7c78d8a9e53ecd2292a2db4b80a98a40c84ab..c7ec9f7db585f786c64583d40e2087ec83e31711 100644 (file)
@@ -1171,6 +1171,15 @@ void LightApp_Application::onSelectionChanged()
   action( EditPasteId )->setEnabled(canPaste);
 }
 
+/*! Reset tree view model */
+void LightApp_Application::onCloseDoc( bool ask )
+{
+  if ( SUIT_DataBrowser* ob = objectBrowser() )
+    ob->setModel(0);
+
+  CAM_Application::onCloseDoc( ask );
+}
+
 /*!
   Adds window to application.
   \param wid - QWidget
index 967676ef11f12849cc4bd6573aa0a43cd36054ac..b1e82199c0b150a711e1a7f93bd17273f69c65f9 100644 (file)
@@ -191,6 +191,7 @@ public slots:
   virtual void                        onCopy();
   virtual void                        onPaste();
   virtual void                        onSelectionChanged();
+  virtual void                        onCloseDoc( bool ask = true);
 
 protected:
   virtual void                        createActions();