Force textEdited emit on set_cmd_text
This commit is contained in:
parent
f1942b0ce0
commit
7ce0bd8bc8
@ -264,8 +264,15 @@ class _Command(QLineEdit):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
text: The text to set (string).
|
text: The text to set (string).
|
||||||
|
|
||||||
|
Emit:
|
||||||
|
textEdited: Emitted if the text changed.
|
||||||
"""
|
"""
|
||||||
|
old_text = self.text()
|
||||||
self.setText(text)
|
self.setText(text)
|
||||||
|
if old_text != text:
|
||||||
|
# We want the completion to pop out here.
|
||||||
|
self.textEdited.emit(text)
|
||||||
self.setFocus()
|
self.setFocus()
|
||||||
self.show_cmd.emit()
|
self.show_cmd.emit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user