[graph] GroupAttribute: iterate over items() for uid generation

__iter__ of core/qt  backends differs for DictModel, which lead to inchorent uids.
TODO: fix that by defining a real DictModel in qt backend
This commit is contained in:
Yann Lanthony 2017-11-17 18:11:57 +01:00
parent 03058f4860
commit 900516a854

View file

@ -366,9 +366,9 @@ class GroupAttribute(Attribute):
def uid(self, uidIndex):
uids = []
for value in self._value:
if uidIndex in value.desc.uid:
uids.append(value.uid(uidIndex))
for k, v in self._value.items():
if uidIndex in v.desc.uid:
uids.append(v.uid(uidIndex))
return hash(uids)
def _applyExpr(self):