diff options
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 999063f7..090b8921 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -631,7 +631,9 @@ class BinaryDataNotificationCallbacks: if notify.notifications & NotificationType.ComponentFunctionRemoved: self._cb.componentFunctionRemoved = self._cb.componentFunctionRemoved.__class__(self._component_function_removed) if notify.notifications & NotificationType.ComponentDataVariableAdded: - self._cb.componentDataVariableAdded = self._cb.componentDataVariableAdded.__class__(self._component_data_variable) + self._cb.componentDataVariableAdded = self._cb.componentDataVariableAdded.__class__(self._component_data_variable_added) + if notify.notifications & NotificationType.ComponentDataVariableRemoved: + self._cb.componentDataVariableRemoved = self._cb.componentDataVariableRemoved.__class__(self._component_data_variable_removed) def _register(self) -> None: core.BNRegisterDataNotification(self._view.handle, self._cb) |
