merge undo handling

This commit is contained in:
Glenn Maynard
2005-12-29 03:29:20 +00:00
parent 9f5b83f65c
commit 242e8b65fd
+2 -2
View File
@@ -1331,8 +1331,7 @@ void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB )
case EDIT_BUTTON_OPEN_PREV_STEPS:
{
// don't keep undo when changing Steps
m_bHasUndo = false;
m_Undo.ClearAll();
ClearUndo();
// save current steps
Steps* pSteps = GAMESTATE->m_pCurSteps[PLAYER_1];
@@ -3265,6 +3264,7 @@ void ScreenEdit::Undo()
void ScreenEdit::ClearUndo()
{
m_bHasUndo = false;
m_Undo.ClearAll();
}
static LocalizedString CREATES_MORE_THAN_NOTES ( "ScreenEdit", "This change creates more than %d notes in a measure." );