From da6488199b35efee460633af673d382c1a97eca1 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 2 Jun 2014 18:48:21 +0400 Subject: [PATCH] 0022604: EDF 8219 - many "SMESH plugins" in Mesh menu --- src/SalomeApp/salome_pluginsmanager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) -- 2.39.2