hints: Small cleanup
This commit is contained in:
parent
00193df99e
commit
ad2435fa0b
@ -392,10 +392,10 @@ class HintManager(QObject):
|
||||
text = elem['href']
|
||||
except KeyError:
|
||||
return None
|
||||
if baseurl is None:
|
||||
baseurl = self._context.baseurl
|
||||
url = QUrl(text)
|
||||
if url.isRelative():
|
||||
if baseurl is None:
|
||||
baseurl = self._context.baseurl
|
||||
url = baseurl.resolved(url)
|
||||
qtutils.ensure_valid(url)
|
||||
return url
|
||||
|
Loading…
Reference in New Issue
Block a user