Fixed bug in allowing links via list

svn: r19409
This commit is contained in:
Doug Blank 2012-04-30 01:49:09 +00:00
parent e1a5a5f8b9
commit f6e541c296

View File

@ -192,6 +192,8 @@ class SimpleTable(object):
return True return True
elif self.__link[index]: elif self.__link[index]:
objclass, handle = self.__link[index] objclass, handle = self.__link[index]
if isinstance(handle, list):
handle = handle[0]
if objclass == 'Person': if objclass == 'Person':
person = self.access.dbase.get_person_from_handle(handle) person = self.access.dbase.get_person_from_handle(handle)
if person: if person:
@ -304,6 +306,8 @@ class SimpleTable(object):
return True return True
elif self.__link[index]: elif self.__link[index]:
objclass, handle = self.__link[index] objclass, handle = self.__link[index]
if isinstance(handle, list):
handle = handle[0]
if objclass == 'Person': if objclass == 'Person':
import gobject import gobject
# If you emmit the signal here and it causes this table to be deleted, # If you emmit the signal here and it causes this table to be deleted,