From 865389bb349a04ec54cf1efb22cdd8ab66f6cd37 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 29 Sep 2014 20:16:38 +0200 Subject: [PATCH] Make CommandRunner a QObject. --- qutebrowser/commands/runners.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qutebrowser/commands/runners.py b/qutebrowser/commands/runners.py index 0fbbba19d..e7971454e 100644 --- a/qutebrowser/commands/runners.py +++ b/qutebrowser/commands/runners.py @@ -156,7 +156,7 @@ class SearchRunner(QObject): self.do_search.emit(self._text, flags) -class CommandRunner: +class CommandRunner(QObject): """Parse and run qutebrowser commandline commands. @@ -166,7 +166,8 @@ class CommandRunner: _win_id: The window this CommandRunner is associated with. """ - def __init__(self, win_id): + def __init__(self, win_id, parent=None): + super().__init__(parent) self._cmd = None self._args = [] self._win_id = win_id