Changeset 4301

Show
Ignore:
Timestamp:
07/21/08 08:32:55 (1 month ago)
Author:
nate
Message:

I was getting a traceback when I tried to add a control to the CD about NoneType? objects having no attribute items. This came from Ed's change in rev 4300. Fixed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r4300 r4301  
    26022602        mixedClass = self.getControlClass(cls) 
    26032603        obj = mixedClass(parent, properties=props) 
    2604         obj.setPropertiesFromAtts(attProperties) 
    2605  
     2604        if attProperties is not None: 
     2605            obj.setPropertiesFromAtts(attProperties) 
     2606         
    26062607        if issubclass(cls, dui.dTreeView): 
    26072608            obj.addDummyData()