Do not call qurl() from is_about_url()
This commit is contained in:
parent
2ed3f722f5
commit
bcb24e3ebf
@ -71,8 +71,9 @@ def version():
|
||||
|
||||
def is_about_url(url):
|
||||
"""Return True if url is an about:... or other special URL."""
|
||||
url = qurl(url)
|
||||
return url.toString().replace('http://', '').startswith('about:')
|
||||
if isinstance(url, QUrl):
|
||||
url = url.toString()
|
||||
return url.replace('http://', '').startswith('about:')
|
||||
|
||||
|
||||
def _git_str():
|
||||
|
Loading…
Reference in New Issue
Block a user