hints: Fix URL resolving crash with new WebElement API.

This commit is contained in:
Florian Bruhin 2014-09-15 06:52:34 +02:00
parent 3597817111
commit 00193df99e

View File

@ -388,8 +388,9 @@ class HintManager(QObject):
Return:
A QUrl with the absolute URL, or None.
"""
try:
text = elem['href']
if not text:
except KeyError:
return None
if baseurl is None:
baseurl = self._context.baseurl