Added hasSelection check before trying to click on a selected link.
This commit is contained in:
parent
c0b6aef774
commit
27cbe618f0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user