Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SalomePyQt methods activateModule(), activateView() do not work if focus is in other...
[modules/gui.git]
/
src
/
LightApp
/
LightApp_Application.cxx
diff --git
a/src/LightApp/LightApp_Application.cxx
b/src/LightApp/LightApp_Application.cxx
index 9f042366bc8ed3c4545ac488251650448b5da7f8..e64fef2c722b3ecc0af5ba931ed5b50cfc0b11e7 100644
(file)
--- a/
src/LightApp/LightApp_Application.cxx
+++ b/
src/LightApp/LightApp_Application.cxx
@@
-542,17
+542,21
@@
bool LightApp_Application::activateModule( const QString& modName )
if ( prevMod )
actName = prevMod->moduleName();
if ( prevMod )
actName = prevMod->moduleName();
- if ( actName == modName )
+ QString name = modName;
+ if ( !name.isEmpty() && !moduleTitle( modName ).isEmpty() )
+ name = moduleTitle( modName );
+
+ if ( actName == name )
return true;
return true;
- putInfo( tr( "ACTIVATING_MODULE" ).arg(
modN
ame ) );
+ putInfo( tr( "ACTIVATING_MODULE" ).arg(
n
ame ) );
saveDockWindowsState();
if ( infoPanel() )
infoPanel()->clear();
saveDockWindowsState();
if ( infoPanel() )
infoPanel()->clear();
- bool status = CAM_Application::activateModule(
modN
ame );
+ bool status = CAM_Application::activateModule(
n
ame );
updateModuleActions();
updateModuleActions();