console: Ignore empty texts
This commit is contained in:
parent
4cab864ea0
commit
1a91972a5c
@ -71,6 +71,7 @@ class ConsoleLineEdit(CommandLineEdit):
|
|||||||
"""Execute the line of code which was entered."""
|
"""Execute the line of code which was entered."""
|
||||||
self.history.stop()
|
self.history.stop()
|
||||||
text = self.text()
|
text = self.text()
|
||||||
|
if text:
|
||||||
self.history.append(text)
|
self.history.append(text)
|
||||||
self.push(text)
|
self.push(text)
|
||||||
self.setText('')
|
self.setText('')
|
||||||
|
Loading…
Reference in New Issue
Block a user