Fix redo action sensitivity for non-editor undo stack changes.

This commit is contained in:
nick_m 2015-09-27 00:59:44 +10:00
parent 9c102fa8d2
commit 24142a424e

View File

@ -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;
}