Fix redo action sensitivity for non-editor undo stack changes.
This commit is contained in:
parent
9c102fa8d2
commit
24142a424e
@ -3534,8 +3534,10 @@ Editor::history_changed ()
|
||||
if (redo_action && _session) {
|
||||
if (_session->redo_depth() == 0) {
|
||||
label = _("Redo");
|
||||
redo_action->set_sensitive (false);
|
||||
} else {
|
||||
label = string_compose(_("Redo (%1)"), _session->next_redo());
|
||||
redo_action->set_sensitive (true);
|
||||
}
|
||||
redo_action->property_label() = label;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user