Salome HOME
NPAL15833: EDF406: Save icon is inactive when study is modified.
authorjfa <jfa@opencascade.com>
Fri, 11 May 2007 10:50:52 +0000 (10:50 +0000)
committerjfa <jfa@opencascade.com>
Fri, 11 May 2007 10:50:52 +0000 (10:50 +0000)
src/PYHELLOGUI/PYHELLOGUI.py

index 8afba7277c496fd5ef27065aa8dc281b9d79980a..8144c35630ca1639e30e7c9f74a24f13c9e6a4ef 100644 (file)
@@ -225,7 +225,7 @@ def CreateObject():
     attr.SetValue( "Object " +  str( __id__ ) )
     attr    = builder.FindOrCreateAttribute( object, "AttributeLocalID" )
     attr.SetValue( __OBJECT_ID__ )
-    sgPyQt.updateObjBrowser()
+    sg.updateObjBrowser(True)
     pass
 
 # ----------------------- #
@@ -239,7 +239,7 @@ def DeleteAll():
             sobj = iter.Value()
             iter.Next()
             builder.RemoveObjectWithChildren( sobj )
-        sgPyQt.updateObjBrowser()
+        sg.updateObjBrowser(True)
     pass
 
 # ----------------------- #
@@ -264,7 +264,7 @@ def Delete():
         if ( sobj ):
             builder = study.NewBuilder()
             builder.RemoveObject( sobj )
-            sgPyQt.updateObjBrowser()
+            sg.updateObjBrowser(True)
     pass
 
 # ----------------------- #