Fix item losing its parent model when filtered out

This commit is contained in:
miruka
2020-05-14 21:21:11 -04:00
parent 631e2bc107
commit dfd7d509a4
2 changed files with 1 additions and 3 deletions

View File

@@ -135,7 +135,7 @@ class Model(MutableMapping):
with self._write_lock:
item = self._data[key]
if self.sync_id:
if self.sync_id and self.take_items_ownership:
item.parent_model = None
del self._data[key]