dabo Commit
Revision 3664
Date: 2007-11-12 14:59:20 -0800 (Mon, 12 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3664

Changed:
U   trunk/dabo/ui/uiwx/dControlItemMixin.py

Log:
Removed the forced sorting when setting the SortFunction on dListControl.


Diff:
Modified: trunk/dabo/ui/uiwx/dControlItemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dControlItemMixin.py     2007-11-12 00:06:02 UTC (rev 
3663)
+++ trunk/dabo/ui/uiwx/dControlItemMixin.py     2007-11-12 22:59:20 UTC (rev 
3664)
@@ -288,8 +288,9 @@
                if self._constructed():
                        if callable(val):
                                self._sortFunction = val
-                               # Force a re-ordering
-                               self.sort()
+                               if not isinstance(self, dabo.ui.dListControl):
+                                       # Force a re-ordering
+                                       self.sort()
                        else:
                                raise TypeError, _("SortFunction must be 
callable")
                else:




_______________________________________________
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