Changeset 3938

Show
Ignore:
Timestamp:
02/25/08 07:27:04 (9 months ago)
Author:
ed
Message:

Fixed a problem in which the tree selection was being returned as a single object instead of a tuple.

Files:

Legend:

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

    r3826 r3938  
    178178        """Refreshes the object names without changing the layout.""" 
    179179        sel = self.tree.Selection 
     180        if not isinstance(sel, (list, tuple)): 
     181            sel = (sel, ) 
    180182        for nd in sel: 
    181183            obj = nd.Object