Do not use PYSONDecoder() to eval states of button in list view
issue2244 (transplanted from a5609b61695b8a7bdb6f7b21a96054b04a5d047a)
This commit is contained in:
@@ -843,8 +843,8 @@ class Button(object):
|
||||
store = self.treeview.get_model()
|
||||
record = store.get_value(store.get_iter(path), 0)
|
||||
|
||||
state_changes = PYSONDecoder().decode(record.expr_eval(
|
||||
self.attrs.get('states', {}), check_load=False))
|
||||
state_changes = record.expr_eval(
|
||||
self.attrs.get('states', {}), check_load=False)
|
||||
if state_changes.get('invisible') \
|
||||
or state_changes.get('readonly'):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user