svn: r7948

This commit is contained in:
Don Allingham
2007-01-21 21:32:53 +00:00
parent ef7f1ffa65
commit 0365b04165
5 changed files with 45 additions and 13 deletions

View File

@ -121,11 +121,14 @@ class History(GrampsDb.GrampsDBCallback):
def back(self,step=1):
self.index -= step
person_handle = self.history[self.index]
if person_handle not in self.mhistory:
self.mhistory.append(person_handle)
self.emit('menu-changed',(self.mhistory,))
return str(self.history[self.index])
try:
person_handle = self.history[self.index]
if person_handle not in self.mhistory:
self.mhistory.append(person_handle)
self.emit('menu-changed',(self.mhistory,))
return str(self.history[self.index])
except IndexError:
return u""
def at_end(self):
return self.index+1 == len(self.history)