From 8e9c9fe7b9fd42e5f67c6717f0df8fd87829f121 Mon Sep 17 00:00:00 2001 From: abd Date: Fri, 30 Jun 2006 13:30:00 +0000 Subject: [PATCH] Fix double deleting of View Manager --- src/STD/STD_Application.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index b845b1112..650cf875d 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -679,7 +679,8 @@ void STD_Application::removeViewManager( SUIT_ViewManager* vm ) emit viewManagerRemoved( vm ); vm->disconnectPopupRequest( this, SLOT( onConnectPopupRequest( SUIT_PopupClient*, QContextMenuEvent* ) ) ); - vm->disconnect(); + disconnect( vm, SIGNAL( activated( SUIT_ViewManager* ) ), + this, SLOT( onViewManagerActivated( SUIT_ViewManager* ) ) ); myViewMgrs.removeRef( vm ); if ( myActiveViewMgr == vm ) @@ -693,7 +694,7 @@ void STD_Application::clearViewManagers() viewManagers( lst ); for ( QPtrListIterator it( lst ); it.current(); ++it ) { - SUIT_ViewManager* vm = it.current(); + QGuardedPtr vm = it.current(); removeViewManager( vm ); delete vm; } -- 2.39.2