0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

UI: Fix undo/redo enabling redo with no items in redo

This commit is contained in:
Ford Smith 2021-04-27 13:51:32 -04:00 committed by Jim
parent 607ee098c5
commit 732c2c7e9e

View File

@ -116,7 +116,8 @@ void undo_stack::enable_undo_redo()
last_is_repeatable = false;
ui->actionMainUndo->setDisabled(false);
ui->actionMainRedo->setDisabled(false);
if (redo_items.size() > 0)
ui->actionMainRedo->setDisabled(false);
}
void undo_stack::disable_undo_redo()