Salome HOME
a better way to activate the viewManager
authorPaul RASCLE <paul.rascle@edf.fr>
Tue, 28 Feb 2017 14:01:53 +0000 (15:01 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Tue, 28 Feb 2017 14:01:53 +0000 (15:01 +0100)
src/SALOME_PYQT/SalomePyQt/SalomePyQt.cxx
src/STD/STD_Application.h

index 6e73d1c6532903f807483c38302af05ae00d35b5..60ef71c81d12391e6429a2a0c5796efca462dceb 100644 (file)
@@ -2901,7 +2901,8 @@ public:
     if ( wnd )
       {
         LightApp_Application* app  = getApplication();
-        app->setActiveViewManager(wnd->getViewManager());
+        app->desktop()->windowActivated(wnd);
+        //app->setActiveViewManager(wnd->getViewManager());
         wnd->setFocus();
         myResult = true;
       }
index be2c85389b46ddb2226d6104a1d3663991eefd18..06ad40df96b1b01ed08ecb1276d3b2b5907242db 100755 (executable)
@@ -104,8 +104,6 @@ public:
 
   virtual void          updateDesktopTitle();
 
-  virtual void          setActiveViewManager( SUIT_ViewManager* );
-
 signals:
   /*!emit that view manager added*/
   void                  viewManagerAdded( SUIT_ViewManager* );
@@ -163,6 +161,8 @@ protected:
   virtual void          beforeCloseDoc( SUIT_Study* theDoc );
   virtual void          afterCloseDoc();
 
+  virtual void          setActiveViewManager( SUIT_ViewManager* );
+
   virtual int           openChoice( const QString& );
   virtual bool          openAction( const int, const QString& );