Move set_model logging to completer

This commit is contained in:
Florian Bruhin 2014-06-03 13:42:29 +02:00
parent 968bb3d430
commit 02e92fd0ed
2 changed files with 2 additions and 2 deletions

View File

@ -205,6 +205,8 @@ class Completer(QObject):
if model is None:
self.view.hide()
return
logger.debug("Setting model to {}".format(
model.__class__.__name__))
self.view.set_model(model)
if model is None:

View File

@ -28,7 +28,6 @@ import qutebrowser.config.config as config
import qutebrowser.commands.utils as cmdutils
from qutebrowser.widgets._completiondelegate import CompletionItemDelegate
from qutebrowser.config.style import set_register_stylesheet
from qutebrowser.utils.log import completion as logger
from qutebrowser.utils.completer import Completer
@ -176,7 +175,6 @@ class CompletionView(QTreeView):
Args:
model: The model to use.
"""
logger.debug("Setting model to {}".format(model.__class__.__name__))
self.setModel(model)
self.expandAll()
self._resize_columns()