From 6cd0d6d43f0470171d977c3c9f6c5d71fc7aff91 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 6 Oct 2016 10:21:04 +0300 Subject: [PATCH] 0023360: [CEA 1963] Use salome.sg.updateObjBrowser(True) instead of salome.sg.updateObjBrowser(1) - Prepare for migration to swig 3: pass explicitly True as boolean parameter for updateObjBrowser() function. --- src/KERNEL_PY/salome_test.py | 6 +++--- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/KERNEL_PY/salome_test.py b/src/KERNEL_PY/salome_test.py index 7a9457760..c70a0f5b3 100755 --- a/src/KERNEL_PY/salome_test.py +++ b/src/KERNEL_PY/salome_test.py @@ -163,7 +163,7 @@ print "OK" # ---- update object browser if salome.hasDesktop(): - salome.sg.updateObjBrowser(1); + salome.sg.updateObjBrowser(True); print @@ -303,7 +303,7 @@ print "OK" # ---- update object browser if salome.hasDesktop(): - salome.sg.updateObjBrowser(1); + salome.sg.updateObjBrowser(True); print @@ -455,4 +455,4 @@ else: # not in gui mode, Paravis can not be tested # ---- update object browser if salome.hasDesktop(): - salome.sg.updateObjBrowser(1); + salome.sg.updateObjBrowser(True); diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index d9dd02393..5947c4030 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -1416,7 +1416,7 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath, sfp << std::endl; sfp << "if salome.sg.hasDesktop():" << std::endl; - sfp << "\tsalome.sg.updateObjBrowser(1)" << std::endl; + sfp << "\tsalome.sg.updateObjBrowser(True)" << std::endl; if(isDumpVisuals) { //Output the call to Session's method restoreVisualState sfp << "\tiparameters.getSession().restoreVisualState(1)" << std::endl; -- 2.39.2