From dc735dc9e75ffce52ef919bb2e071d5aa6b288d1 Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 6 Dec 2006 09:15:37 +0000 Subject: [PATCH] Fix for bug PAL13883 : customize windows() -> Impossible to have a python window. --- src/LightApp/LightApp_Application.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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(); } -- 2.39.2