GEDCOM fixes

svn: r392
This commit is contained in:
Don Allingham
2001-09-08 20:12:38 +00:00
parent 15fbfe6286
commit 90677086b9
5 changed files with 340 additions and 176 deletions
+20 -4
View File
@@ -56,9 +56,17 @@ class Find:
def find_next(self):
"""Advances to the next person that matches the dialog text"""
text = self.entry.get_text()
row = self.clist.selection[0]
if row == None or text == "":
try:
row = self.clist.selection[0]
except IndexError:
gtk.gdk_beep()
return
if row == None or text == "":
gtk.gdk_beep()
return
row = row + 1
last = self.clist.rows
person = None
@@ -75,9 +83,17 @@ class Find:
def find_prev(self):
"""Advances to the previous person that matches the dialog text"""
text = self.entry.get_text()
row = self.clist.selection[0]
if row == None or text == "":
try:
row = self.clist.selection[0]
except IndexError:
gtk.gdk_beep()
return
if row == None or text == "":
gtk.gdk_beep()
return
row = row - 1
person = None
while row >= 0: