From ef1f42fc01e1de8ae62fccf3932fdfdb0f7efc8e Mon Sep 17 00:00:00 2001 From: asv Date: Fri, 17 Feb 2006 10:55:29 +0000 Subject: [PATCH] activating saved viewer is done. --- src/SalomeApp/SalomeApp_Study.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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(); + } } -- 2.39.2