]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix a bug : avoid Qt's warning
authorvsr <vsr@opencascade.com>
Tue, 21 Jun 2005 06:19:03 +0000 (06:19 +0000)
committervsr <vsr@opencascade.com>
Tue, 21 Jun 2005 06:19:03 +0000 (06:19 +0000)
src/SUIT/SUIT_Application.cxx

index b281997cfe8fb371d2209abff10413bc67659b45..4acf370ac4431bbcccd00fc84c2169acf328d83e 100755 (executable)
@@ -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()