diff options
author | Eugene Sandulenko | 2016-02-12 19:16:55 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:13:06 +0100 |
commit | 1158987a1e4f078ed1ae699409fd26558486722e (patch) | |
tree | ff608d4f56ec4bf79969f57ae7a9429a3e91a526 | |
parent | fcebf28fd2501e8cd835fc57588ae3e51b2cb5ca (diff) | |
download | scummvm-rg350-1158987a1e4f078ed1ae699409fd26558486722e.tar.gz scummvm-rg350-1158987a1e4f078ed1ae699409fd26558486722e.tar.bz2 scummvm-rg350-1158987a1e4f078ed1ae699409fd26558486722e.zip |
WAGE: Disable Undo action after command exectution
-rw-r--r-- | engines/wage/gui-console.cpp | 4 | ||||
-rw-r--r-- | engines/wage/gui.h | 1 | ||||
-rw-r--r-- | engines/wage/wage.cpp | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/engines/wage/gui-console.cpp b/engines/wage/gui-console.cpp index 414d13f27d..9b02608989 100644 --- a/engines/wage/gui-console.cpp +++ b/engines/wage/gui-console.cpp @@ -348,4 +348,8 @@ void Gui::actionUndo() { _menu->enableCommand(kMenuEdit, kMenuActionUndo, false); } +void Gui::disableUndo() { + _menu->enableCommand(kMenuEdit, kMenuActionUndo, false); +} + } // End of namespace Wage diff --git a/engines/wage/gui.h b/engines/wage/gui.h index ae53f4b6c2..652e0ff1e4 100644 --- a/engines/wage/gui.h +++ b/engines/wage/gui.h @@ -107,6 +107,7 @@ public: void actionCopy(); void actionPaste(); void actionUndo(); + void disableUndo(); private: void undrawCursor(); diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index 5ea1e3b314..92602234dd 100644 --- a/engines/wage/wage.cpp +++ b/engines/wage/wage.cpp @@ -173,6 +173,7 @@ void WageEngine::processEvents() { processTurn(&_inputText, NULL); _inputText = ""; _gui->appendText(""); + _gui->disableUndo(); break; default: |