Force textEdited emit on set_cmd_text

This commit is contained in:
Florian Bruhin 2014-04-30 12:06:23 +02:00
parent f1942b0ce0
commit 7ce0bd8bc8

View File

@ -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()