Make callback mandatory for tab.selection()
This commit is contained in:
parent
ce8d15d2b0
commit
5fd3943ebc
@ -392,7 +392,7 @@ class AbstractCaret(QObject):
|
||||
def drop_selection(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def selection(self, callback=None):
|
||||
def selection(self, callback):
|
||||
raise NotImplementedError
|
||||
|
||||
def follow_selected(self, *, tab=False):
|
||||
|
@ -289,7 +289,7 @@ class WebEngineCaret(browsertab.AbstractCaret):
|
||||
def drop_selection(self):
|
||||
self._js_call('dropSelection')
|
||||
|
||||
def selection(self, callback=None):
|
||||
def selection(self, callback):
|
||||
# Not using selectedText() as WORKAROUND for
|
||||
# https://bugreports.qt.io/browse/QTBUG-53134
|
||||
# Even on Qt 5.10 selectedText() seems to work poorly, see
|
||||
|
Loading…
Reference in New Issue
Block a user