timeline: reorganized undo commands
Split commands between several files rather than having them all in two monolithic ones.
This commit is contained in:
@@ -49,8 +49,18 @@ void MultiUndoCommand::undo()
|
||||
}
|
||||
}
|
||||
|
||||
UndoCommand::UndoCommand()
|
||||
{
|
||||
prepared_ = false;
|
||||
}
|
||||
|
||||
void UndoCommand::redo_and_set_modified()
|
||||
{
|
||||
if (!prepared_) {
|
||||
prepare();
|
||||
prepared_ = true;
|
||||
}
|
||||
|
||||
redo();
|
||||
|
||||
project_ = GetRelevantProject();
|
||||
|
||||
Reference in New Issue
Block a user