mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-26 10:30:32 +05:00
Fix for bug IPAL10562 (SIGSEGV detected after close and trying create new window with OCC Viewer).
This commit is contained in:
parent
efdb915cd4
commit
f4c6ee73a9
@ -1101,7 +1101,9 @@ bool GeometryGUI::activateModule( SUIT_Study* study )
|
|||||||
connect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
|
connect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
|
||||||
this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
|
this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
|
||||||
connect( (STD_Application*)application(), SIGNAL( viewManagerAdded( SUIT_ViewManager* ) ),
|
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;
|
GUIMap::Iterator it;
|
||||||
for ( it = myGUIMap.begin(); it != myGUIMap.end(); ++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* ) ),
|
disconnect( application()->desktop(), SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
|
||||||
this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
|
this, SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
|
||||||
disconnect( (STD_Application*)application(), SIGNAL( viewManagerAdded( SUIT_ViewManager* ) ),
|
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();
|
EmitSignalCloseAllDialogs();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user