Fix Search Keywords Dialog broken __eq__.
@@ -348,7 +348,10 @@ class ResourceUserKeywordInfo(_UserKeywordInfo):
return self.item.parent.parent.name + '.' + self.name
def __eq__(self, other):
- return self.name.lower() == other.name.lower() # and self.__hash__ == other.__hash__
+ if isinstance(other, self.__class__):
+ return self.name.lower() == other.name.lower()
+ else:
+ return False
def __hash__(self):
return hash(self.longname) # repr(self))
