selfish parameters

This commit is contained in:
Claude 2014-10-19 23:01:06 +02:00
parent ecbe5c071d
commit ed51367bdd
2 changed files with 3 additions and 6 deletions

View File

@ -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 = []

View File

@ -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.