From f6e541c2961e83456837e816396e246f9fba465b Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 30 Apr 2012 01:49:09 +0000 Subject: [PATCH] Fixed bug in allowing links via list svn: r19409 --- src/Simple/_SimpleTable.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Simple/_SimpleTable.py b/src/Simple/_SimpleTable.py index 53adb7542..dfc32ba45 100644 --- a/src/Simple/_SimpleTable.py +++ b/src/Simple/_SimpleTable.py @@ -192,6 +192,8 @@ class SimpleTable(object): return True elif self.__link[index]: objclass, handle = self.__link[index] + if isinstance(handle, list): + handle = handle[0] if objclass == 'Person': person = self.access.dbase.get_person_from_handle(handle) if person: @@ -304,6 +306,8 @@ class SimpleTable(object): return True elif self.__link[index]: objclass, handle = self.__link[index] + if isinstance(handle, list): + handle = handle[0] if objclass == 'Person': import gobject # If you emmit the signal here and it causes this table to be deleted,