From e22bd2bfcb482af430526e6c7d9f8ea5015004b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 25 Jan 2014 19:05:05 +0100 Subject: [PATCH] 7388: Clicking on www link in Welcome Gramplet when detached causes crash --- src/gui/widgets/styledtexteditor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/styledtexteditor.py b/src/gui/widgets/styledtexteditor.py index da9b6aab7..bd4cf9cf5 100644 --- a/src/gui/widgets/styledtexteditor.py +++ b/src/gui/widgets/styledtexteditor.py @@ -739,7 +739,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."""