Changeset 4140

Show
Ignore:
Timestamp:
06/17/08 05:25:14 (5 months ago)
Author:
ed
Message:

Fixed a problem reported by Nate Lowrie that resulted from my last fix. This should take care of both cases.

Also found and corrected a problem that could cause a panel class saved with just an empty sizer to be re-opened as a non-sizer based component.

Files:

Legend:

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

    r4125 r4140  
    572572        ret = False 
    573573        atts = clsd.get("attributes", {}) 
    574         szinf = atts.get("sizerInfo", "{}") 
    575         if szinf != "{}": 
     574        szinf = atts.get("sizerInfo", "") 
     575        if szinf != "": 
    576576            ret = True 
    577577        else: 
  • trunk/ide/ClassDesignerComponents.py

    r4131 r4140  
    6161                try: 
    6262                    myID = self.classID.split("-")[1] 
    63                 except IndexError
     63                except (AttributeError, IndexError)
    6464                    myID = abs(self.__hash__()) 
    6565                if classID is None: