fixed dock insert order bug
This commit is contained in:
parent
51f0a063ee
commit
23cfdf7239
@ -22,6 +22,9 @@ class Container(object):
|
||||
return None
|
||||
|
||||
def insert(self, new, pos=None, neighbor=None):
|
||||
# remove from existing parent first
|
||||
new.setParent(None)
|
||||
|
||||
if not isinstance(new, list):
|
||||
new = [new]
|
||||
if neighbor is None:
|
||||
|
Loading…
Reference in New Issue
Block a user