Improve test on focused widget

issue2856
review585005
(transplanted from f5ada17e858e1d14ffdc5b80e46cafaa2151eef4)
This commit is contained in:
Cédric Krier committed 2012-11-15 10:34:41 +01:00
1 parent f79bd986bf
commit 31f15548d2
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):