Salome HOME
refs #1417: debug of dump view
[modules/gui.git] / src / SUIT / SUIT_ViewManager.cxx
index 85d50eb4f974ff962183e5b1b02eb3e80a643e55..89c950173610c9ae6d263f2115dfa5f9f66f4b20 100755 (executable)
@@ -57,8 +57,11 @@ SUIT_ViewManager::SUIT_ViewManager( SUIT_Study* theStudy,
 
   myId = useNewId( getType() );
 
-  connect( theDesktop, SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
-           this,       SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
+  if( theDesktop )
+  {
+    connect( theDesktop, SIGNAL( windowActivated( SUIT_ViewWindow* ) ),
+             this,       SLOT( onWindowActivated( SUIT_ViewWindow* ) ) );
+  }
 
   myStudy = theStudy;
   if ( myStudy )