No need to get surname list for a readonly db

svn: r15462
This commit is contained in:
Doug Blank 2010-05-23 15:40:59 +00:00
parent ed3c144a79
commit 67a82ed20c

View File

@ -304,7 +304,7 @@ class EditPerson(EditPrimary):
self.pname.set_surname,
self.pname.get_surname,
self.db.readonly,
autolist=self.db.get_surname_list())
autolist=self.db.get_surname_list() if not self.db.readonly else [])
self.gid = widgets.MonitoredEntry(
self.top.get_object("gid"),