summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-09-27 00:59:44 +1000
committernick_m <mainsbridge@gmail.com>2015-10-20 00:53:28 +1100
commit24142a424e747e591b5edae744a63d6afbd221bc (patch)
tree5e8b920fc7715e4cb2707547a682fd27c07e51a8 /gtk2_ardour/editor.cc
parent9c102fa8d20b932f9a9879298764c0351a0e5acc (diff)
Fix redo action sensitivity for non-editor undo stack changes.
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 538203644f..c9bdb12c4e 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -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;
}