mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Fix redo action sensitivity for non-editor undo stack changes.
This commit is contained in:
parent
9c102fa8d2
commit
24142a424e
1 changed files with 2 additions and 0 deletions
|
|
@ -3534,8 +3534,10 @@ Editor::history_changed ()
|
||||||
if (redo_action && _session) {
|
if (redo_action && _session) {
|
||||||
if (_session->redo_depth() == 0) {
|
if (_session->redo_depth() == 0) {
|
||||||
label = _("Redo");
|
label = _("Redo");
|
||||||
|
redo_action->set_sensitive (false);
|
||||||
} else {
|
} else {
|
||||||
label = string_compose(_("Redo (%1)"), _session->next_redo());
|
label = string_compose(_("Redo (%1)"), _session->next_redo());
|
||||||
|
redo_action->set_sensitive (true);
|
||||||
}
|
}
|
||||||
redo_action->property_label() = label;
|
redo_action->property_label() = label;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue