From 00a8a784ec3c5c64a15fa38e8492a2451a896f7f Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 11 Oct 2022 14:25:24 +0200 Subject: [PATCH] Merge pull request #7591 from Roy-043/Arch-Improve-handling-of-window-hosts Arch: Improve handling of window hosts --- src/Mod/Arch/ArchWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Arch/ArchWindow.py b/src/Mod/Arch/ArchWindow.py index 46d3559565..3d2346a998 100644 --- a/src/Mod/Arch/ArchWindow.py +++ b/src/Mod/Arch/ArchWindow.py @@ -651,8 +651,8 @@ class _Window(ArchComponent.Component): if hasattr(self,prop): if getattr(self,prop) != getattr(obj,prop): touchhosts = True - if touchhosts and hasattr(obj,"Hosts"): - for host in obj.Hosts: + if touchhosts and hasattr(self, "Hosts") and hasattr(obj, "Hosts"): + for host in set(self.Hosts + obj.Hosts): # use set to remove duplicates # mark host to recompute so it can detect this object host.touch() if prop in ["Width","Height","Frame"]: