Small fixes for marks.
Mark two callbacks with pyqtSlot as appropriate. Return False instead of raising NotImplementedException to avoid pylint identifying MarkKeyParser as abstract.
This commit is contained in:
parent
c7ee7a9702
commit
ae267c466f
@ -279,10 +279,11 @@ class MarkKeyParser(keyparser.BaseKeyParser):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@pyqtSlot(str)
|
||||||
def on_keyconfig_changed(self, mode):
|
def on_keyconfig_changed(self, mode):
|
||||||
"""MarkKeyParser has no config section (no bindable keys)."""
|
"""MarkKeyParser has no config section (no bindable keys)."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def execute(self, cmdstr, _keytype, count=None):
|
def execute(self, cmdstr, _keytype, count=None):
|
||||||
"""Should never be called on MarkKeyParser."""
|
"""Should never be called on MarkKeyParser."""
|
||||||
raise NotImplementedError
|
assert False
|
||||||
|
@ -673,6 +673,7 @@ class TabbedBrowser(tabwidget.TabWidget):
|
|||||||
if key.isupper() and key in self._global_marks:
|
if key.isupper() and key in self._global_marks:
|
||||||
point, url = self._global_marks[key]
|
point, url = self._global_marks[key]
|
||||||
|
|
||||||
|
@pyqtSlot(bool)
|
||||||
def callback(ok):
|
def callback(ok):
|
||||||
if ok:
|
if ok:
|
||||||
self.cur_load_finished.disconnect(callback)
|
self.cur_load_finished.disconnect(callback)
|
||||||
|
Loading…
Reference in New Issue
Block a user