Fix another issue when working with sets

This commit is contained in:
DarkPhoenix
2019-08-04 00:24:28 +03:00
parent cab2d41269
commit 71e7ea0230

View File

@@ -145,7 +145,7 @@ class BaseWrapperList(gui.display.Display):
return None
def removeWrappers(self, wrappers):
wrappers = set(wrappers).union(self._wrappers)
wrappers = set(wrappers).intersection(self._wrappers)
if not wrappers:
return
for wrapper in wrappers:
@@ -188,7 +188,7 @@ class BaseWrapperList(gui.display.Display):
self.updateView()
def OnFitChanged(self, event):
if set(event.fitIDs).union(w.item.ID for w in self._wrappers if w.isFit):
if set(event.fitIDs).intersection(w.item.ID for w in self._wrappers if w.isFit):
self.updateView()
def OnFitRemoved(self, event):