From 621388e5e074ded06700fec0171e9b571fa826c8 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 15 Oct 2014 12:08:37 +0200 Subject: [PATCH] init quickmark completion in init_static --- qutebrowser/utils/completer.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/qutebrowser/utils/completer.py b/qutebrowser/utils/completer.py index ec8add8c9..daa069286 100644 --- a/qutebrowser/utils/completer.py +++ b/qutebrowser/utils/completer.py @@ -61,7 +61,6 @@ class Completer(QObject): } self._init_static_completions() self._init_setting_completions() - self._init_quickmark_completions() def __repr__(self): return utils.get_repr(self) @@ -78,6 +77,8 @@ class Completer(QObject): models.CommandCompletionModel(self), self) self._models[usertypes.Completion.helptopic] = CFM( models.HelpCompletionModel(self), self) + self._models[usertypes.Completion.quickmark] = CFM( + models.QuickmarkCompletionModel(self), self) def _init_setting_completions(self): """Initialize setting completion models.""" @@ -95,13 +96,6 @@ class Completer(QObject): self._models[usertypes.Completion.value][sectname][opt] = CFM( model, self) - def _init_quickmark_completions(self): - """Initialize the quickmark completion models.""" - self._models[usertypes.Completion.quickmark] = CFM( - models.QuickmarkCompletionModel(self), self) - self._models[usertypes.Completion.helptopic] = CFM( - models.HelpCompletionModel(self), self) - def _get_new_completion(self, parts, cursor_part): """Get a new completion model.