Add client patch to clear entry when combobox is set to inactive item

This commit is contained in:
Bernat Brunet Torruella 2014-10-29 11:55:23 +01:00
parent ac2e62a14d
commit 2b49d4fc18
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -r 558a89377a75 tryton/common/selection.py
--- a/tryton/tryton/common/selection.py Sat Oct 18 09:15:22 2014 +0200
+++ b/tryton/tryton/common/selection.py Wed Oct 29 11:36:16 2014 +0100
@@ -189,4 +189,7 @@
if value:
return False
entry.set_active(active)
+ if active == -1:
+ # When setting no item GTK doesn't clear the entry
+ entry.child.set_text('')
return True

1
series
View File

@ -1,3 +1,4 @@
combobox_inactive_clear.diff
issue154_316.diff
issue14321002_40001.diff
issue136_416.diff