dabo Commit
Revision 6720
Date: 2011-07-11 14:21:07 -0700 (Mon, 11 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6720
Changed:
U trunk/ide/ClassDesigner.py
Log:
Fix sizer removal from outlined sizers list issue.
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2011-07-11 20:51:04 UTC (rev 6719)
+++ trunk/ide/ClassDesigner.py 2011-07-11 21:21:07 UTC (rev 6720)
@@ -2666,6 +2666,9 @@
def onTreeDelete(self, evt):
obj = self._contextObj
+ isSizer = isinstance(obj, dui.dSizerMixin)
+ if isSizer:
+ obj.Form.removeFromOutlinedSizers(obj)
if hasattr(obj, "onDelete"):
obj.onDelete(evt)
return
@@ -2675,7 +2678,7 @@
# leaving this here in case it comes back up.
refill = not isinstance(obj, LayoutPanel)
csz.delete(obj, refill=refill)
- elif isinstance(obj, dui.dSizerMixin):
+ elif isSizer:
try:
if obj.Parent.Sizer is obj:
obj.Parent.Sizer = 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]