From 567fe0ec1006400f3b804f02a89d0caef8a8200e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Thu, 11 Aug 2016 17:48:43 +0200 Subject: [PATCH] keyinput: don't emit keystring_updated twice when clearing --- qutebrowser/keyinput/basekeyparser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/keyinput/basekeyparser.py b/qutebrowser/keyinput/basekeyparser.py index 88c1774c1..db7a6705f 100644 --- a/qutebrowser/keyinput/basekeyparser.py +++ b/qutebrowser/keyinput/basekeyparser.py @@ -306,7 +306,9 @@ class BaseKeyParser(QObject): if handled or not self._supports_chains: return handled match = self._handle_single_key(e) - self.keystring_updated.emit(self._keystring) + # don't emit twice if the keystring was cleared in self.clear_keystring + if self._keystring: + self.keystring_updated.emit(self._keystring) return match != self.Match.none def read_config(self, modename=None):