From: mzn Date: Wed, 30 Nov 2005 08:19:08 +0000 (+0000) Subject: Fix for bug IPAL10562 (SIGSEGV detected after close and trying create new window... X-Git-Tag: BR_3_1_0_deb~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4c6ee73a99bdc8f8b7a25984327aeeaa327948a;p=modules%2Fgeom.git Fix for bug IPAL10562 (SIGSEGV detected after close and trying create new window with OCC Viewer). --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 0d8526b98..ae7f47327 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -1101,7 +1101,9 @@ bool GeometryGUI::activateModule( SUIT_Study* study ) connect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ), this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) ); connect( (STD_Application*)application(), SIGNAL( viewManagerAdded( SUIT_ViewManager* ) ), - this, SLOT( onViewManagerAdded( SUIT_ViewManager* ) ) ); + this, SLOT( onViewManagerAdded( SUIT_ViewManager* ) ) ); + connect( (STD_Application*)application(), SIGNAL( viewManagerRemoved( SUIT_ViewManager* ) ), + this, SLOT( onViewManagerRemoved( SUIT_ViewManager* ) ) ); GUIMap::Iterator it; for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++it ) @@ -1143,7 +1145,9 @@ bool GeometryGUI::deactivateModule( SUIT_Study* study ) disconnect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ), this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) ); disconnect( (STD_Application*)application(), SIGNAL( viewManagerAdded( SUIT_ViewManager* ) ), - this, SLOT( onViewManagerAdded( SUIT_ViewManager* ) ) ); + this, SLOT( onViewManagerAdded( SUIT_ViewManager* ) ) ); + disconnect( (STD_Application*)application(), SIGNAL( viewManagerRemoved( SUIT_ViewManager* ) ), + this, SLOT( onViewManagerRemoved( SUIT_ViewManager* ) ) ); EmitSignalCloseAllDialogs();