diff --git a/gramps/gui/widgets/styledtexteditor.py b/gramps/gui/widgets/styledtexteditor.py index 46c820910..c7d65cfa7 100644 --- a/gramps/gui/widgets/styledtexteditor.py +++ b/gramps/gui/widgets/styledtexteditor.py @@ -769,7 +769,10 @@ class StyledTextEditor(Gtk.TextView): return # If ok, then let's open obj = find_parent_with_attr(self, attr="dbstate") - display_url(url, obj.uistate) + if obj: + display_url(url, obj.uistate) + else: + display_url(url) def _copy_url_cb(self, menuitem, url, flavor): """Copy url to both useful selections."""