mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 13:33:16 +02:00
...
This commit is contained in:
parent
b3ec54636d
commit
5b28a4d1a6
1 changed files with 4 additions and 1 deletions
|
|
@ -979,7 +979,10 @@ def editor_link_clicked(self, url):
|
|||
if current_container().has_name(target):
|
||||
self.link_clicked(target, frag, show_anchor_not_found=True)
|
||||
else:
|
||||
purl = urlparse(url)
|
||||
try:
|
||||
purl = urlparse(url)
|
||||
except ValueError:
|
||||
return
|
||||
if purl.scheme not in {'', 'file'}:
|
||||
open_url(QUrl(url))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue