Do not use PYSONDecoder() to eval states of button in list view
issue2244
This commit is contained in:
1 parent
1fdc36f306
commit
99e4eee9e5
1 file changed
+2
-2
@@ -921,8 +921,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