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:12:47 +01:00
parent 1539830914
commit b2dec24edf

View File

@ -769,7 +769,10 @@ class StyledTextEditor(Gtk.TextView):
return
# If ok, then let's open
obj = find_parent_with_attr(self, attr="dbstate")
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."""