]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
activating saved viewer is done.
authorasv <asv@opencascade.com>
Fri, 17 Feb 2006 10:55:29 +0000 (10:55 +0000)
committerasv <asv@opencascade.com>
Fri, 17 Feb 2006 10:55:29 +0000 (10:55 +0000)
src/SalomeApp/SalomeApp_Study.cxx

index fadef3a66b7ac5ae218b22adc93902ddda0a6697..85377c0800491b8ab2f2a28fa76eeee04687c5fe 100644 (file)
@@ -865,12 +865,6 @@ void SalomeApp_Study::restoreState(int savePoint)
     }
   }
 
-  //Set focus to an active view window
-  if (activeView) {
-    activeView->setActiveWindow();
-    activeView->setFocus();    
-  }
-
   vector<string> v = ip.getValues("AP_MODULES_LIST");
   for (int i = 0; i<v.size(); i++) {
     ((SalomeApp_Application*)application())->activateModule(v[i].c_str());
@@ -881,4 +875,10 @@ void SalomeApp_Study::restoreState(int savePoint)
   QString activeModuleName(ip.getProperty("AP_ACTIVE_MODULE").c_str());
   if (activeModuleName != "") 
     ((SalomeApp_Application*)application())->activateModule(activeModuleName);  
+
+  //Set focus to an active view window
+  if (activeView) {
+    activeView->setActiveWindow();
+    activeView->setFocus();    
+  }
 }