hints: Small cleanup

This commit is contained in:
Florian Bruhin 2014-09-15 06:53:05 +02:00
parent 00193df99e
commit ad2435fa0b

View File

@ -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