dabo Commit
Revision 6490
Date: 2011-03-04 13:12:57 -0800 (Fri, 04 Mar 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6490

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

Log:
Fixed an issue where duplicate names were being created for the dock manager.


Diff:
Modified: trunk/dabo/ui/uiwx/dDockForm.py
===================================================================
--- trunk/dabo/ui/uiwx/dDockForm.py     2011-03-04 14:33:27 UTC (rev 6489)
+++ trunk/dabo/ui/uiwx/dDockForm.py     2011-03-04 21:12:57 UTC (rev 6490)
@@ -118,6 +118,10 @@
                there as well as the form.
                """
                changed = True
+               try:
+                       mgr = parent._mgr
+               except AttributeError:
+                       mgr = self._Manager
                while changed:
                        i = 0
                        auiOK = False
@@ -126,7 +130,7 @@
                                candidate = name
                                if i:
                                        candidate = "%s%s" % (name, i)
-                               mtch = [pi.name for pi in 
self._Manager.GetAllPanes()
+                               mtch = [pi.name for pi in mgr.GetAllPanes()
                                                if pi.name == candidate]
                                if mtch:
                                        auiOK = False
@@ -137,6 +141,7 @@
                        candidate = super(dDockPanel, 
self)._uniqueNameForParent(name, parent)
                        changed = changed and (candidate != name)
                        name = candidate
+               return name
 
 
        def float(self):



_______________________________________________
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