Fix screen.form can be None

This commit is contained in:
C?dric Krier 2008-03-18 15:52:52 +01:00
parent 2aaf0276da
commit 08b662cec4

View file

@ -80,7 +80,7 @@ class EditableTreeView(gtk.TreeView):
self.screen.form.message_state(_('Relation Field: F1: New F2: Open/Search'))
elif focus_column and (focus_column._type in ('boolean')):
start_editing = False
else:
elif self.screen.form:
self.screen.form.message_state('')
return super(EditableTreeView, self).set_cursor(path, focus_column,
start_editing)