fix a bug in ged that prevent callback to be called in the correct order.
This commit is contained in:
parent
409038784a
commit
c9bc9393d5
|
@ -46,6 +46,9 @@ class GlobalEventsDispatcher(object):
|
|||
for i, h in enumerate(handlers_list):
|
||||
if priority < h[0]:
|
||||
break
|
||||
else:
|
||||
# no event with smaller prio found, put it at the end
|
||||
i += 1
|
||||
|
||||
handlers_list.insert(i, (priority, handler))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue