]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0022604: EDF 8219 - many "SMESH plugins" in Mesh menu
authorvsr <vsr@opencascade.com>
Mon, 2 Jun 2014 14:48:21 +0000 (18:48 +0400)
committervsr <vsr@opencascade.com>
Mon, 2 Jun 2014 14:48:21 +0000 (18:48 +0400)
src/SalomeApp/salome_pluginsmanager.py

index 90a592db45c85e09fa126459e9d27e39a425bd09..fc63c95b4dfe480c37382519e64563197c797cf8 100644 (file)
@@ -111,9 +111,9 @@ def initialize(module,name,basemenuname,menuname):
     else:
       plugins[name]=[]
   if module:
-    studyId=sg.getActiveStudyId()
-    if plugins[name].has_key(studyId):return
-    plugins[name][studyId]=PluginsManager(module,name,basemenuname,menuname)
+    d=sgPyQt.getDesktop()
+    if plugins[name].has_key(d):return
+    plugins[name][d]=PluginsManager(module,name,basemenuname,menuname)
   else:
     plugins[name].append(PluginsManager(module,name,basemenuname,menuname))