Fix missing return
This commit is contained in:
parent
113221c731
commit
16758354e8
@ -392,6 +392,9 @@ class WebView(QWebView):
|
|||||||
urlstr: The URL to handle, as string.
|
urlstr: The URL to handle, as string.
|
||||||
"""
|
"""
|
||||||
url = QUrl(urlstr)
|
url = QUrl(urlstr)
|
||||||
|
if not url.isValid():
|
||||||
|
message.error("Invalid link {} clicked!".format(urlstr))
|
||||||
|
return
|
||||||
if self._open_target == Target.tab:
|
if self._open_target == Target.tab:
|
||||||
self.tabbedbrowser.tabopen(url, False)
|
self.tabbedbrowser.tabopen(url, False)
|
||||||
elif self._open_target == Target.tab_bg:
|
elif self._open_target == Target.tab_bg:
|
||||||
|
Loading…
Reference in New Issue
Block a user