Do not call qurl() from is_about_url()

This commit is contained in:
Florian Bruhin 2014-02-07 14:00:54 +01:00
parent 2ed3f722f5
commit bcb24e3ebf

View File

@ -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():