From b145e664e1c26322c916783b910050b7393fdb83 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 30 Jul 2019 15:12:29 +0100 Subject: [PATCH] we should be checking if the new hook has a higher priority --- src/EventManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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