selfish parameters
This commit is contained in:
parent
ecbe5c071d
commit
ed51367bdd
@ -201,11 +201,8 @@ class QuickmarkCompletionModel(basecompletion.BaseCompletionModel):
|
||||
|
||||
# pylint: disable=abstract-method
|
||||
|
||||
def __init__(self, parent=None, match_field='url'):
|
||||
def __init__(self, match_field='url', parent=None):
|
||||
super().__init__(parent)
|
||||
self._on_quickmarks_changed(self, match_field)
|
||||
|
||||
def _on_quickmarks_changed(self, parent=None, match_field='url'):
|
||||
|
||||
qmlist = []
|
||||
|
||||
|
@ -104,9 +104,9 @@ class Completer(QObject):
|
||||
except KeyError:
|
||||
pass
|
||||
self._models[usertypes.Completion.quickmark_by_url] = CFM(
|
||||
models.QuickmarkCompletionModel(self, 'url'), self)
|
||||
models.QuickmarkCompletionModel('url', self), self)
|
||||
self._models[usertypes.Completion.quickmark_by_name] = CFM(
|
||||
models.QuickmarkCompletionModel(self, 'name'), self)
|
||||
models.QuickmarkCompletionModel('name', self), self)
|
||||
|
||||
def _get_new_completion(self, parts, cursor_part):
|
||||
"""Get a new completion model.
|
||||
|
Loading…
Reference in New Issue
Block a user