From 7ce0bd8bc8bab8087069d0797722e2834a1fc5ee Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 30 Apr 2014 12:06:23 +0200 Subject: [PATCH] Force textEdited emit on set_cmd_text --- qutebrowser/widgets/_statusbar.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qutebrowser/widgets/_statusbar.py b/qutebrowser/widgets/_statusbar.py index aed35d1e4..1fd9086dd 100644 --- a/qutebrowser/widgets/_statusbar.py +++ b/qutebrowser/widgets/_statusbar.py @@ -264,8 +264,15 @@ class _Command(QLineEdit): Args: text: The text to set (string). + + Emit: + textEdited: Emitted if the text changed. """ + old_text = self.text() self.setText(text) + if old_text != text: + # We want the completion to pop out here. + self.textEdited.emit(text) self.setFocus() self.show_cmd.emit()