diff options
| author | 2019-07-30 15:12:29 +0100 | |
|---|---|---|
| committer | 2019-07-30 15:12:29 +0100 | |
| commit | b145e664e1c26322c916783b910050b7393fdb83 (patch) | |
| tree | 0d6010a460ba302936240ad39cbdaf07ae03679d /src | |
| parent | hook priority position should default to 0, not end (diff) | |
| signature | ||
we should be checking if the new hook has a higher priority
Diffstat (limited to 'src')
| -rw-r--r-- | src/EventManager.py | 2 |
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 |
