Fix hinting when page has no URL set yet.
This commit is contained in:
parent
858c38964b
commit
565303ebcd
@ -758,7 +758,10 @@ class HintManager(QObject):
|
|||||||
self._context = HintContext()
|
self._context = HintContext()
|
||||||
self._context.target = target
|
self._context.target = target
|
||||||
self._context.rapid = rapid
|
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)
|
self._context.frames = webelem.get_child_frames(mainframe)
|
||||||
for frame in self._context.frames:
|
for frame in self._context.frames:
|
||||||
# WORKAROUND for
|
# WORKAROUND for
|
||||||
|
Loading…
Reference in New Issue
Block a user