From: vsr Date: Mon, 2 Jun 2014 14:48:21 +0000 (+0400) Subject: 0022604: EDF 8219 - many "SMESH plugins" in Mesh menu X-Git-Tag: V7_5_0a1~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da6488199b35efee460633af673d382c1a97eca1;p=modules%2Fgui.git 0022604: EDF 8219 - many "SMESH plugins" in Mesh menu --- diff --git a/src/SalomeApp/salome_pluginsmanager.py b/src/SalomeApp/salome_pluginsmanager.py index 90a592db4..fc63c95b4 100644 --- a/src/SalomeApp/salome_pluginsmanager.py +++ b/src/SalomeApp/salome_pluginsmanager.py @@ -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))