From 34a5ad48b258cd4b92e160b3b48a047f9a116fcc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 24 Sep 2014 22:23:36 +0200 Subject: [PATCH] Don't pass prompt object to prompter. --- qutebrowser/widgets/statusbar/prompt.py | 2 +- qutebrowser/widgets/statusbar/prompter.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/widgets/statusbar/prompt.py b/qutebrowser/widgets/statusbar/prompt.py index 46df80498..fde0afe70 100644 --- a/qutebrowser/widgets/statusbar/prompt.py +++ b/qutebrowser/widgets/statusbar/prompt.py @@ -66,7 +66,7 @@ class Prompt(QWidget): self.lineedit = PromptLineEdit() self._hbox.addWidget(self.lineedit) - prompter_obj = prompter.Prompter(self) + prompter_obj = prompter.Prompter() objreg.register('prompter', prompter_obj) def __repr__(self): diff --git a/qutebrowser/widgets/statusbar/prompter.py b/qutebrowser/widgets/statusbar/prompter.py index 228c30f9f..fa3119de1 100644 --- a/qutebrowser/widgets/statusbar/prompter.py +++ b/qutebrowser/widgets/statusbar/prompter.py @@ -62,8 +62,8 @@ class Prompter: _queue: A deque of waiting questions. """ - def __init__(self, prompt): - self.question = None + def __init__(self): + self._question = None self._loops = [] self._queue = collections.deque() self._busy = False