mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Define UndoManager::VisitStates
This commit is contained in:
@@ -183,8 +183,8 @@ void OnUndo(const CommandContext &context)
|
||||
}
|
||||
|
||||
undoManager.Undo(
|
||||
[&]( const UndoState &state ){
|
||||
ProjectHistory::Get( project ).PopState( state ); } );
|
||||
[&]( const UndoStackElem &elem ){
|
||||
ProjectHistory::Get( project ).PopState( elem.state ); } );
|
||||
|
||||
auto t = *tracks.Selected().begin();
|
||||
if (!t)
|
||||
@@ -213,8 +213,8 @@ void OnRedo(const CommandContext &context)
|
||||
}
|
||||
|
||||
undoManager.Redo(
|
||||
[&]( const UndoState &state ){
|
||||
ProjectHistory::Get( project ).PopState( state ); } );
|
||||
[&]( const UndoStackElem &elem ){
|
||||
ProjectHistory::Get( project ).PopState( elem.state ); } );
|
||||
|
||||
auto t = *tracks.Selected().begin();
|
||||
if (!t)
|
||||
|
||||
Reference in New Issue
Block a user