From b2dec24edf2f5f25a466c2e31f506f2e50dd904f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 25 Jan 2014 19:12:47 +0100 Subject: [PATCH] 7388: Clicking on www link in Welcome Gramplet when detached causes crash --- gramps/gui/widgets/styledtexteditor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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."""