dabo Commit
Revision 5904
Date: 2010-07-05 11:37:47 -0700 (Mon, 05 Jul 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5904

Changed:
U   trunk/ide/ClassDesigner.py

Log:
Modified the way selection/deselection was processed.


Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py  2010-07-05 18:30:01 UTC (rev 5903)
+++ trunk/ide/ClassDesigner.py  2010-07-05 18:37:47 UTC (rev 5904)
@@ -2406,7 +2406,13 @@
                        for obj in objs:
                                try:
                                        self._selection.remove(obj)
-                               except: pass
+                               except ValueError:
+                                       # Object is no longer in the list
+                                       pass
+                               try:
+                                       obj.Selected = False
+                               except AttributeError:
+                                       pass
                else:
                        if not shift and (objs == self._selection):
                                # No change
@@ -2419,6 +2425,11 @@
                                        else:
                                                self._selection.remove(obj)
                        else:
+                               for obj in oldsel:
+                                       try:
+                                               obj.Selected = False
+                                       except AttributeError:
+                                               pass
                                self._selection = []
                                for obj in objs:
                                        if obj is not None:



_______________________________________________
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/[email protected]

Reply via email to