Added hasSelection check before trying to click on a selected link.

This commit is contained in:
Antoni Boucher 2015-05-31 12:53:14 -04:00
parent c0b6aef774
commit 27cbe618f0

View File

@ -997,6 +997,8 @@ class CommandDispatcher:
"""
widget = self._current_widget()
page = widget.page()
if not page.hasSelection():
return
if QWebSettings.globalSettings().testAttribute(
QWebSettings.JavascriptEnabled):
if tab: