From: mkr Date: Wed, 6 Dec 2006 09:15:37 +0000 (+0000) Subject: Fix for bug PAL13883 : customize windows() -> Impossible to have a python window. X-Git-Tag: V3_2_4pre1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dc735dc9e75ffce52ef919bb2e071d5aa6b288d1;p=modules%2Fgui.git Fix for bug PAL13883 : customize windows() -> Impossible to have a python window. --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index a99958e13..828b7aa3b 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -2097,8 +2097,15 @@ void LightApp_Application::updateWindows() currentWindows( winMap ); if ( activeStudy() ) { - for ( QMap::ConstIterator it = winMap.begin(); it != winMap.end(); ++it ) - getWindow( it.key() ); + for ( QMap::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(); }