Fix hinting when page has no URL set yet.

This commit is contained in:
Florian Bruhin 2015-03-20 08:35:33 +01:00
parent 858c38964b
commit 565303ebcd

View File

@ -758,7 +758,10 @@ class HintManager(QObject):
self._context = HintContext()
self._context.target = target
self._context.rapid = rapid
self._context.baseurl = tabbed_browser.current_url()
try:
self._context.baseurl = tabbed_browser.current_url()
except qtutils.QtValueError:
raise cmdexc.CommandError("No URL set for this page yet!")
self._context.frames = webelem.get_child_frames(mainframe)
for frame in self._context.frames:
# WORKAROUND for