mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 12:11:32 +00:00
Add the explanation to Console::acceptCommand()
This commit is contained in:
parent
58e2d3711f
commit
d2293867ba
1 changed files with 4 additions and 0 deletions
|
@ -294,6 +294,10 @@ namespace MWGui
|
||||||
mCommandHistory.push_back(cm);
|
mCommandHistory.push_back(cm);
|
||||||
mCurrent = mCommandHistory.end();
|
mCurrent = mCommandHistory.end();
|
||||||
mEditString.clear();
|
mEditString.clear();
|
||||||
|
|
||||||
|
// Reset the command line before the command execution.
|
||||||
|
// It prevents re-triggering the acceptCommand() event during
|
||||||
|
// the actual command execution.
|
||||||
mCommandLine->setCaption("");
|
mCommandLine->setCaption("");
|
||||||
|
|
||||||
execute (cm);
|
execute (cm);
|
||||||
|
|
Loading…
Reference in a new issue