* 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:
parent
7a44979bc3
commit
57a9a420ee
@ -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,7 +207,8 @@ 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()
|
||||||
model.enable_sort()
|
if model:
|
||||||
|
model.enable_sort()
|
||||||
|
|
||||||
def goto_active_person(self,first=0):
|
def goto_active_person(self,first=0):
|
||||||
if not self.parent.active_person:
|
if not self.parent.active_person:
|
||||||
|
Loading…
Reference in New Issue
Block a user