From db748f222a27c952470cffe59a917ba5776535cd Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 21 Jun 2005 06:19:03 +0000 Subject: [PATCH] Fix a bug : avoid Qt's warning --- src/SUIT/SUIT_Application.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.2