From: asv Date: Fri, 17 Feb 2006 10:55:29 +0000 (+0000) Subject: activating saved viewer is done. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef1f42fc01e1de8ae62fccf3932fdfdb0f7efc8e;p=modules%2Fgui.git activating saved viewer is done. --- diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index fadef3a66..85377c080 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -865,12 +865,6 @@ void SalomeApp_Study::restoreState(int savePoint) } } - //Set focus to an active view window - if (activeView) { - activeView->setActiveWindow(); - activeView->setFocus(); - } - vector v = ip.getValues("AP_MODULES_LIST"); for (int i = 0; iactivateModule(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(); + } }