mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 00:14:09 -04:00
observer: Subject incorrectly notified based on variable names
This commit is contained in:
parent
7945f9d246
commit
841ad65b89
@ -69,8 +69,8 @@ class Subject(object):
|
||||
self._changes = []
|
||||
|
||||
def setProperty(self, propertyName, value, notify=True):
|
||||
propertyName = '_' + propertyName
|
||||
self.__dict__[propertyName] = value
|
||||
realPropertyName = '_' + propertyName
|
||||
self.__dict__[realPropertyName] = value
|
||||
self.addChange(ChangeType.MODIFY, propertyName, value)
|
||||
if notify:
|
||||
self.notifyChanged()
|
||||
|
Loading…
Reference in New Issue
Block a user