]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0020515: the dockable windows states are not restored correctly
authorasl <asl@opencascade.com>
Wed, 14 Oct 2009 06:05:56 +0000 (06:05 +0000)
committerasl <asl@opencascade.com>
Wed, 14 Oct 2009 06:05:56 +0000 (06:05 +0000)
src/LightApp/LightApp_Application.cxx

index 82a439d9437a80aa4c03278f16b0a04984e0e07d..2b524699c8ef74514222147c3eae6ada7cb7758e 100644 (file)
@@ -715,7 +715,9 @@ void LightApp_Application::onNewWindow()
 */
 void LightApp_Application::onNewDoc()
 {
-  saveDockWindowsState();
+  //asl: fix for 0020515
+  if ( activeStudy() )
+    saveDockWindowsState();
 
   CAM_Application::onNewDoc();
 }