From 23be4521690e783bb43b07c68c1beb6f034f3fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 25 Jan 2014 19:11:13 +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 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."""