From bbe313bb86ceda7d87773beae32be6276c1177f8 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 12 Nov 2009 14:47:52 +0000 Subject: [PATCH] This is correction for the previous modification. It should be made here because myDesktop->addWindow() emits signal about window activated and view manager is empty at the moment. It can cause exception situations, because during working with view window we believe that it has not empty view manager. --- src/SUIT/SUIT_ViewManager.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SUIT/SUIT_ViewManager.cxx b/src/SUIT/SUIT_ViewManager.cxx index 2a84f9fa0..00dd41235 100755 --- a/src/SUIT/SUIT_ViewManager.cxx +++ b/src/SUIT/SUIT_ViewManager.cxx @@ -149,11 +149,11 @@ SUIT_ViewWindow* SUIT_ViewManager::createViewWindow() setViewName( aView ); aView->setWindowIcon( QIcon( myIcon ) ); + aView->setViewManager( this ); myDesktop->addWindow( aView ); //it is done automatically during creation of view - aView->setViewManager( this ); emit viewCreated( aView ); // Special treatment for the case when is the first one in this view manager -- 2.39.2