mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
added SymbolValueEditor + minor fixes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@96 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -43,6 +43,7 @@ void ActionStack::add(Action* action, bool allow_merge) {
|
||||
|
||||
void ActionStack::undo() {
|
||||
assert(canUndo());
|
||||
if (!canUndo()) return;
|
||||
Action* action = undo_actions.back();
|
||||
action->perform(true);
|
||||
tellListeners(*action, true);
|
||||
@@ -52,6 +53,7 @@ void ActionStack::undo() {
|
||||
}
|
||||
void ActionStack::redo() {
|
||||
assert(canRedo());
|
||||
if (!canRedo()) return;
|
||||
Action* action = redo_actions.back();
|
||||
action->perform(false);
|
||||
tellListeners(*action, false);
|
||||
|
||||
Reference in New Issue
Block a user