Fix :follow-selected --tab

This commit is contained in:
Florian Bruhin 2016-08-11 17:50:19 +02:00
parent fe3c748e44
commit 9195e6a3a7

View File

@ -315,7 +315,7 @@ class WebKitCaret(browsertab.AbstractCaret):
if QWebSettings.globalSettings().testAttribute(
QWebSettings.JavascriptEnabled):
if tab:
self._widget.page().open_target = usertypes.ClickTarget.tab
self._tab.data.open_target = usertypes.ClickTarget.tab
self._tab.run_js_async(
'window.getSelection().anchorNode.parentNode.click()')
else: