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
This commit is contained in:
1 parent
d0ddc163f4
commit
3c164dfd1a
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user