Arch: small fix in windows - fixes #2193

This commit is contained in:
Yorik van Havre 2015-07-19 12:10:46 -03:00
parent 6b3d7b17a7
commit c2bedaeb96
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ class ComponentTaskPanel:
if it:
mod = None
for a in self.attribs:
if it == getattr(self,"tree"+a):
if it.text(0) == getattr(self,"tree"+a).text(0):
mod = a
for o in FreeCADGui.Selection.getSelection():
addToComponent(self.obj,o,mod)

View File

@ -592,7 +592,7 @@ def getMovableChildren(objectslist,recursive=False):
children = obj.OutList
if hasattr(obj,"Proxy"):
if obj.Proxy:
if hasattr(obj.Proxy,"getSiblings"):
if hasattr(obj.Proxy,"getSiblings") and not(getType(obj) in ["Window"]):
children.extend(obj.Proxy.getSiblings(obj))
for child in children:
if hasattr(child,"MoveWithHost"):