Assume http:// for URLs without it

This commit is contained in:
Iain Lane 2008-09-06 16:01:12 +01:00
parent 6b680e4c52
commit 4bb1a11595
1 changed files with 4 additions and 1 deletions

View File

@ -832,6 +832,9 @@ text/plain
if url:
if url[1] != self.matches['email']:
if url[1]: # Assume HTTP if we launch a URL with no protocol, otherwise xdg-open won't open it
address = "http://" + url[0]
else:
address = url[0]
nameopen = _("_Open Link")
namecopy = _("_Copy Link Address")