aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-07-30 15:12:29 +0100
committerGravatar jesopo2019-07-30 15:12:29 +0100
commitb145e664e1c26322c916783b910050b7393fdb83 (patch)
tree0d6010a460ba302936240ad39cbdaf07ae03679d
parenthook priority position should default to 0, not end (diff)
signature
we should be checking if the new hook has a higher priority
-rw-r--r--src/EventManager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EventManager.py b/src/EventManager.py
index b09847c4..db5475cf 100644
--- a/src/EventManager.py
+++ b/src/EventManager.py
@@ -150,7 +150,7 @@ class EventRoot(object):
hook_position = 0
for i, other_hook in enumerate(hook_array):
- if other_hook.priority > new_hook.priority:
+ if new_hook.priority > other_hook.priority:
hook_position = i
break