Fix lint
This commit is contained in:
parent
e851839973
commit
28a6b3918c
@ -21,7 +21,7 @@
|
||||
|
||||
import itertools
|
||||
|
||||
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl, QObject, QSizeF, QTimer
|
||||
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QUrl, QObject, QSizeF
|
||||
from PyQt5.QtGui import QIcon
|
||||
from PyQt5.QtWidgets import QWidget
|
||||
|
||||
@ -571,7 +571,8 @@ class AbstractTab(QWidget):
|
||||
log.webview.debug("link clicked: url {}, override target {}, "
|
||||
"open_target {}".format(
|
||||
url.toDisplayString(),
|
||||
self.data.override_target, self.data.open_target))
|
||||
self.data.override_target,
|
||||
self.data.open_target))
|
||||
|
||||
if not url.isValid():
|
||||
msg = urlutils.get_errstring(url, "Invalid link clicked")
|
||||
|
@ -26,7 +26,7 @@ import re
|
||||
import html
|
||||
from string import ascii_lowercase
|
||||
|
||||
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, Qt, QUrl
|
||||
from PyQt5.QtCore import pyqtSlot, QObject, Qt, QUrl
|
||||
from PyQt5.QtWidgets import QLabel
|
||||
|
||||
from qutebrowser.config import config, style
|
||||
|
@ -387,6 +387,7 @@ class AbstractWebElement(collections.abc.MutableMapping):
|
||||
self._tab.post_event(evt)
|
||||
|
||||
def after_click():
|
||||
"""Move cursor to end and reset override_target after clicking."""
|
||||
if self.is_text_input() and self.is_editable():
|
||||
self._tab.caret.move_to_end_of_document()
|
||||
self._tab.data.override_target = None
|
||||
|
@ -36,7 +36,7 @@ from helpers import utils
|
||||
|
||||
|
||||
def pytest_collection_modifyitems(config, items):
|
||||
"""Apply @qtwebengine_* markers"""
|
||||
"""Apply @qtwebengine_* markers."""
|
||||
webengine = config.getoption('--qute-bdd-webengine')
|
||||
|
||||
for item in items:
|
||||
|
Loading…
Reference in New Issue
Block a user