From f25a7d782e3629f303c2d915eab4d7440c892b3f Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 12 Dec 2013 08:31:05 +0000 Subject: [PATCH] Correction of Fix of INTPAL0052217: TC7.3.0:SIGSEGV when update study in NoteBook --- src/LightApp/LightApp_Application.cxx | 12 +++--------- src/LightApp/LightApp_Application.h | 1 - 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index c7ec9f7db..1461178bc 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1171,15 +1171,6 @@ 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 @@ -1836,6 +1827,9 @@ void LightApp_Application::onPreferenceChanged( QString& modName, QString& secti /*!Remove all windows from study.*/ void LightApp_Application::beforeCloseDoc( SUIT_Study* s ) { + if ( SUIT_DataBrowser* ob = objectBrowser() ) + ob->setModel(0); + CAM_Application::beforeCloseDoc( s ); } diff --git a/src/LightApp/LightApp_Application.h b/src/LightApp/LightApp_Application.h index b1e82199c..967676ef1 100644 --- a/src/LightApp/LightApp_Application.h +++ b/src/LightApp/LightApp_Application.h @@ -191,7 +191,6 @@ public slots: virtual void onCopy(); virtual void onPaste(); virtual void onSelectionChanged(); - virtual void onCloseDoc( bool ask = true); protected: virtual void createActions(); -- 2.39.2