From: vsr Date: Tue, 21 Jun 2005 06:19:03 +0000 (+0000) Subject: Fix a bug : avoid Qt's warning X-Git-Tag: T3_0_0_a4~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db748f222a27c952470cffe59a917ba5776535cd;p=modules%2Fgui.git Fix a bug : avoid Qt's warning --- diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index b281997cf..4acf370ac 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -108,8 +108,8 @@ void SUIT_Application::setDesktop( SUIT_Desktop* desk ) delete myDesktop; myDesktop = desk; - connect( myDesktop, SIGNAL( activated() ), - this, SLOT( onDesktopActivated() ) ); + if ( myDesktop ) + connect( myDesktop, SIGNAL( activated() ), this, SLOT( onDesktopActivated() ) ); } SUIT_Study* SUIT_Application::createNewStudy()