diff --git a/gramps/gui/widgets/styledtexteditor.py b/gramps/gui/widgets/styledtexteditor.py index 44734febe..a1c92db53 100644 --- a/gramps/gui/widgets/styledtexteditor.py +++ b/gramps/gui/widgets/styledtexteditor.py @@ -768,7 +768,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."""