Commit 2ba504ae authored by mathieui's avatar mathieui

Fix a bug when removing an event handler

parent 5e3f2ab1
......@@ -98,7 +98,7 @@ class EventHandler:
priority.remove(callback)
else:
callbacks = self.events[name]
for priority in callbacks.entries():
for priority in callbacks.values():
for entry in priority[:]:
if entry == callback:
priority.remove(callback)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment