mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
b3ec54636d
commit
5b28a4d1a6
@ -979,7 +979,10 @@ class Boss(QObject):
|
|||||||
if current_container().has_name(target):
|
if current_container().has_name(target):
|
||||||
self.link_clicked(target, frag, show_anchor_not_found=True)
|
self.link_clicked(target, frag, show_anchor_not_found=True)
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
purl = urlparse(url)
|
purl = urlparse(url)
|
||||||
|
except ValueError:
|
||||||
|
return
|
||||||
if purl.scheme not in {'', 'file'}:
|
if purl.scheme not in {'', 'file'}:
|
||||||
open_url(QUrl(url))
|
open_url(QUrl(url))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user