Improve test on focused widget

issue2856
review585005
This commit is contained in:
Cédric Krier committed 2012-11-15 10:34:41 +01:00
1 parent d857a417ca
commit 2455f6dabf
1 file changed
+3 -1
+3 -1
View File
@@ -82,7 +82,9 @@ class ViewForm(ParserView):
field = record.group.fields[name]
for widget in widgets:
if (not focused_widget
or widget.widget.get_focus_child()):
or widget.widget.is_focus()
or (isinstance(widget.widget, gtk.Container)
and widget.widget.get_focus_child())):
widget.set_value(record, field)
def sel_ids_get(self):