diff --git a/src/common/ged.py b/src/common/ged.py index 485176fa2..c0a2700f6 100644 --- a/src/common/ged.py +++ b/src/common/ged.py @@ -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: