7388: Clicking on www link in Welcome Gramplet when detached causes crash
This commit is contained in:
parent
1539830914
commit
b2dec24edf
@ -769,7 +769,10 @@ class StyledTextEditor(Gtk.TextView):
|
|||||||
return
|
return
|
||||||
# If ok, then let's open
|
# If ok, then let's open
|
||||||
obj = find_parent_with_attr(self, attr="dbstate")
|
obj = find_parent_with_attr(self, attr="dbstate")
|
||||||
|
if obj:
|
||||||
display_url(url, obj.uistate)
|
display_url(url, obj.uistate)
|
||||||
|
else:
|
||||||
|
display_url(url)
|
||||||
|
|
||||||
def _copy_url_cb(self, menuitem, url, flavor):
|
def _copy_url_cb(self, menuitem, url, flavor):
|
||||||
"""Copy url to both useful selections."""
|
"""Copy url to both useful selections."""
|
||||||
|
Loading…
Reference in New Issue
Block a user