* src/DisplayTabs/_SourceEmbedList.py: check for empty reference
before attempting to edit svn: r6979
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user