PlaylistContainer: Translate Undo/Redo

Fixes #1017
This commit is contained in:
Jonas Kvinge 2022-08-09 17:04:59 +02:00
parent ca81f144e6
commit 553d4cce93
1 changed files with 2 additions and 2 deletions

View File

@ -225,8 +225,8 @@ void PlaylistContainer::SetViewModel(Playlist *playlist, const int scroll_positi
// Sort out the undo/redo actions
delete undo_;
delete redo_;
undo_ = playlist->undo_stack()->createUndoAction(this);
redo_ = playlist->undo_stack()->createRedoAction(this);
undo_ = playlist->undo_stack()->createUndoAction(this, tr("Undo"));
redo_ = playlist->undo_stack()->createRedoAction(this, tr("Redo"));
undo_->setIcon(IconLoader::Load("edit-undo"));
undo_->setShortcut(QKeySequence::Undo);
redo_->setIcon(IconLoader::Load("edit-redo"));