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."""
|
||||
self.history.stop()
|
||||
text = self.text()
|
||||
if text:
|
||||
self.history.append(text)
|
||||
self.push(text)
|
||||
self.setText('')
|
||||
|
Loading…
Reference in New Issue
Block a user