7388: Clicking on www link in Welcome Gramplet when detached causes crash

This commit is contained in:
Jérôme Rapinat 2014-01-25 19:05:05 +01:00
parent a4a24ca233
commit e22bd2bfcb

View File

@ -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."""