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: Return:
A QUrl with the absolute URL, or None. A QUrl with the absolute URL, or None.
""" """
text = elem['href'] try:
if not text: text = elem['href']
except KeyError:
return None return None
if baseurl is None: if baseurl is None:
baseurl = self._context.baseurl baseurl = self._context.baseurl