]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PAL11954 - "Point view" viewer must be activated on PostPro loading
authorasl <asl@opencascade.com>
Wed, 12 Apr 2006 09:40:08 +0000 (09:40 +0000)
committerasl <asl@opencascade.com>
Wed, 12 Apr 2006 09:40:08 +0000 (09:40 +0000)
src/LightApp/LightApp_Application.cxx
src/LightApp/LightApp_Application.h

index 4c4a9a6156f0cf28fcce42f794c6a7a9cccef6b0..36b208edf5b795c893178f0867a2ca7034910a7e 100644 (file)
@@ -1291,9 +1291,6 @@ SUIT_ViewManager* LightApp_Application::createViewManager( const QString& vmType
   if ( viewWin && desktop() )
     viewWin->resize( (int)( desktop()->width() * 0.6 ), (int)( desktop()->height() * 0.6 ) );
 
-  connect( viewMgr, SIGNAL( lastViewClosed( SUIT_ViewManager* ) ),
-           this, SLOT( onCloseView( SUIT_ViewManager* ) ) );
-
   return viewMgr;
 }
 
@@ -2146,6 +2143,14 @@ void LightApp_Application::onWCDestroyed( QObject* ob )
   }
 }
 
+/*! redefined to connect  */
+void LightApp_Application::addViewManager( SUIT_ViewManager* vm )
+{
+  connect( vm, SIGNAL( lastViewClosed( SUIT_ViewManager* ) ),
+           this, SLOT( onCloseView( SUIT_ViewManager* ) ) );
+  STD_Application::addViewManager( vm );
+}
+
 /*! redefined to remove view manager from memory */
 void LightApp_Application::removeViewManager( SUIT_ViewManager* vm )
 {
index bf54e9bb4ee375355bdfcf9998e8ec6d0565e2fe..74725dc2a340a98fd4fa23904721d95867b6861b 100644 (file)
@@ -108,6 +108,7 @@ public:
   void                                updateActions();
 
   SUIT_ViewManager*                   getViewManager( const QString&, const bool );
+  virtual void                        addViewManager( SUIT_ViewManager* );
   virtual void                        removeViewManager( SUIT_ViewManager* );
   QWidget*                            getWindow( const int, const int = -1 );
   QWidget*                            window( const int, const int = -1 ) const;