Clear open target in acceptNavigationRequest.

This is a regression introduced in a76868c0f4.
Fixes #530.
This commit is contained in:
Florian Bruhin 2015-03-03 23:28:45 +01:00
parent 801f6b2667
commit 40af99bacc

View File

@ -535,6 +535,7 @@ class BrowserPage(QWebPage):
message.error(self._win_id, "Invalid link {} clicked!".format(
urlstr))
log.webview.debug(url.errorString())
self.open_target = usertypes.ClickTarget.normal
return False
tabbed_browser = objreg.get('tabbed-browser', scope='window',
window=self._win_id)
@ -546,6 +547,7 @@ class BrowserPage(QWebPage):
target = self._hint_target
else:
target = self.open_target
self.open_target = usertypes.ClickTarget.normal
if target == usertypes.ClickTarget.tab:
tabbed_browser.tabopen(url, False)
return False