* src/DisplayTabs/_SourceEmbedList.py: check for empty reference
before attempting to edit svn: r6979
This commit is contained in:
parent
1ea2bbf4bd
commit
fe9bd541b4
@ -1,4 +1,6 @@
|
|||||||
2006-07-01 Don Allingham <don@gramps-project.org>
|
2006-07-01 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/DisplayTabs/_SourceEmbedList.py: check for empty reference
|
||||||
|
before attempting to edit
|
||||||
* src/GrampsWidgets.py: fix LinkLabel to not try to rebuild
|
* src/GrampsWidgets.py: fix LinkLabel to not try to rebuild
|
||||||
gender code
|
gender code
|
||||||
|
|
||||||
|
@ -124,8 +124,8 @@ class SourceEmbedList(EmbeddedList):
|
|||||||
|
|
||||||
def edit_button_clicked(self, obj):
|
def edit_button_clicked(self, obj):
|
||||||
sref = self.get_selected()
|
sref = self.get_selected()
|
||||||
src = self.dbstate.db.get_source_from_handle(sref.ref)
|
|
||||||
if sref:
|
if sref:
|
||||||
|
src = self.dbstate.db.get_source_from_handle(sref.ref)
|
||||||
try:
|
try:
|
||||||
from Editors import EditSourceRef
|
from Editors import EditSourceRef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user