mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Remove unnecessary parts of fix for bug 2501...
... Don't need to put the project in a strange state where Undo commands are ignored until labels are de-selected
This commit is contained in:
@@ -183,13 +183,6 @@ void OnUndo(const CommandContext &context)
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto lt : tracks.Selected< LabelTrack >()) {
|
||||
auto &view = LabelTrackView::Get( *lt );
|
||||
if (!view.Undo( project )) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
undoManager.Undo(
|
||||
[&]( const UndoStackElem &elem ){
|
||||
ProjectHistory::Get( project ).PopState( elem.state ); } );
|
||||
|
||||
Reference in New Issue
Block a user