From 3c164dfd1a5eed9ab48bbf74493f56d55f3b08f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 26 Feb 2019 15:42:26 +0100 Subject: [PATCH] Use idle_add to set active on combobox from match selected of dropdown Without this delay, it generates warnings when the selection is done with the mouse or a SIGABRT when it is done with the keyboard. issue8115 review46781002 --- tryton/common/selection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/common/selection.py b/tryton/common/selection.py index c30f95a1a0..374f9ef057 100644 --- a/tryton/common/selection.py +++ b/tryton/common/selection.py @@ -186,7 +186,7 @@ class PopdownMixin(object): model = entry.get_model() for i, values in enumerate(model): if values[1] == value: - entry.set_active(i) + gobject.idle_add(entry.set_active, i) break def get_popdown_value(self, entry, index=1):