dabo Commit
Revision 3938
Date: 2008-02-25 07:27:04 -0800 (Mon, 25 Feb 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3938

Changed:
U   trunk/ide/ClassDesignerTreeSheet.py

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


Diff:
Modified: trunk/ide/ClassDesignerTreeSheet.py
===================================================================
--- trunk/ide/ClassDesignerTreeSheet.py 2008-02-25 13:31:16 UTC (rev 3937)
+++ trunk/ide/ClassDesignerTreeSheet.py 2008-02-25 15:27:04 UTC (rev 3938)
@@ -177,6 +177,8 @@
        def updateNames(self, frm):
                """Refreshes the object names without changing the layout."""
                sel = self.tree.Selection
+               if not isinstance(sel, (list, tuple)):
+                       sel = (sel, )
                for nd in sel:
                        obj = nd.Object
                        nd.Caption = self._getDisplayName(obj)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to