]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
emit signal after remove view manager from application list
authorptv <ptv@opencascade.com>
Tue, 31 Oct 2006 12:30:37 +0000 (12:30 +0000)
committerptv <ptv@opencascade.com>
Tue, 31 Oct 2006 12:30:37 +0000 (12:30 +0000)
src/STD/STD_Application.cxx

index 7755d6cfaf33329cf80ccd30577efa299401dfe2..85b71d09c44eb1f99531e5152dae95501c3affbc 100755 (executable)
@@ -677,8 +677,6 @@ void STD_Application::removeViewManager( SUIT_ViewManager* vm )
 
   vm->closeAllViews();
 
-  emit viewManagerRemoved( vm );
-
   vm->disconnectPopupRequest( this, SLOT( onConnectPopupRequest( SUIT_PopupClient*, QContextMenuEvent* ) ) );
   disconnect( vm, SIGNAL( activated( SUIT_ViewManager* ) ),
              this, SLOT( onViewManagerActivated( SUIT_ViewManager* ) ) );
@@ -686,6 +684,8 @@ void STD_Application::removeViewManager( SUIT_ViewManager* vm )
 
   if ( myActiveViewMgr == vm )
     myActiveViewMgr = 0;
+  
+  emit viewManagerRemoved( vm );
 }
 
 /*!Remove all view managers from view managers list.*/