]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug PAL13883 : customize windows() -> Impossible to have a python window.
authormkr <mkr@opencascade.com>
Wed, 6 Dec 2006 09:15:37 +0000 (09:15 +0000)
committermkr <mkr@opencascade.com>
Wed, 6 Dec 2006 09:15:37 +0000 (09:15 +0000)
src/LightApp/LightApp_Application.cxx

index a99958e136d557ba9168882fd44aa7e6f5fd9497..828b7aa3b15eb6702e5436abbf6b44e73b941f49 100644 (file)
@@ -2097,8 +2097,15 @@ void LightApp_Application::updateWindows()
   currentWindows( winMap );
 
   if ( activeStudy() ) {
-    for ( QMap<int, int>::ConstIterator it = winMap.begin(); it != winMap.end(); ++it )
-      getWindow( it.key() );
+    for ( QMap<int, int>::ConstIterator it = winMap.begin(); it != winMap.end(); ++it ) {
+      getWindow( it.key() ); 
+      
+      Dock dock; int index, extraOffset; bool nl;
+      if ( desktop()->getLocation( myWindows[it.key()], dock, index, nl, extraOffset )
+          &&
+          dock != (Dock)it.data() )
+       desktop()->moveDockWindow( myWindows[it.key()], (Dock)it.data() );
+    }
 
     loadWindowsGeometry();
   }