Follow StyledText links to include other objects, too

svn: r15520
This commit is contained in:
Doug Blank 2010-06-01 17:10:00 +00:00
parent 8d2e6a82c4
commit 3989ef284f

View File

@ -293,6 +293,12 @@ class ReferencedBySelectionProxyDb(ProxyDbBase):
note = self.db.get_note_from_handle(note_handle) note = self.db.get_note_from_handle(note_handle)
if note: if note:
self.referenced["Note"].add(note_handle) self.referenced["Note"].add(note_handle)
for tag in note.text.get_tags():
if tag.name == 'Link':
if tag.value.startswith("gramps://"):
obj_class, prop, value = tag.value[9:].split("/")
if prop == "handle":
self.process_object(obj_class, value)
# -------------------------------------------- # --------------------------------------------