From: nds Date: Thu, 12 Nov 2009 14:47:52 +0000 (+0000) Subject: This is correction for the previous modification. X-Git-Tag: V2_3_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bbe313bb86ceda7d87773beae32be6276c1177f8;p=modules%2Fgui.git 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. --- 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