* src/PeopleView.py (PeopleView.add_to_person_list): don't attempt to sort the

model unless it has be assigned.


svn: r2731
This commit is contained in:
Don Allingham 2004-01-31 21:32:01 +00:00
parent 4f22b0cc17
commit 8a4a4fac42

View File

@ -189,6 +189,7 @@ class PeopleView:
val = self.parent.db.getPersonDisplay(person.getId()) val = self.parent.db.getPersonDisplay(person.getId())
pg = unicode(val[5]) pg = unicode(val[5])
pg = pg[0] pg = pg[0]
model = None
if self.DataFilter.compare(person): if self.DataFilter.compare(person):
if pg and pg != '@': if pg and pg != '@':
@ -206,6 +207,7 @@ class PeopleView:
if change: if change:
self.parent.change_active_person(person) self.parent.change_active_person(person)
self.goto_active_person() self.goto_active_person()
if model:
model.enable_sort() model.enable_sort()
def goto_active_person(self,first=0): def goto_active_person(self,first=0):