From 9d57da77ee4571c5361d9eea55688c8771ee4b4e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 2 Jul 2006 03:46:19 +0000 Subject: [PATCH] * src/DisplayTabs/_SourceEmbedList.py: check for empty reference before attempting to edit svn: r6979 --- ChangeLog | 2 ++ src/DisplayTabs/_SourceEmbedList.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 928b44a5c..3a9ad56e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ 2006-07-01 Don Allingham + * src/DisplayTabs/_SourceEmbedList.py: check for empty reference + before attempting to edit * src/GrampsWidgets.py: fix LinkLabel to not try to rebuild gender code diff --git a/src/DisplayTabs/_SourceEmbedList.py b/src/DisplayTabs/_SourceEmbedList.py index 9c12fa44e..8743d24c4 100644 --- a/src/DisplayTabs/_SourceEmbedList.py +++ b/src/DisplayTabs/_SourceEmbedList.py @@ -124,8 +124,8 @@ class SourceEmbedList(EmbeddedList): def edit_button_clicked(self, obj): sref = self.get_selected() - src = self.dbstate.db.get_source_from_handle(sref.ref) if sref: + src = self.dbstate.db.get_source_from_handle(sref.ref) try: from Editors import EditSourceRef