summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_actions.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-06-03 03:16:50 +1000
committernick_m <mainsbridge@gmail.com>2016-06-03 03:16:50 +1000
commit050035e7877f683027346b28972e371c1e73bb67 (patch)
tree42d13b9cdcbd953f74732e2884705b89f5a20621 /gtk2_ardour/editor_actions.cc
parent575bb7792fe452d52bfd693769908d8d74a70da2 (diff)
Actions - make set-tempo-from-edit-range sensitive to time selection.
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r--gtk2_ardour/editor_actions.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc
index 3924ad25f8..856d6b889d 100644
--- a/gtk2_ardour/editor_actions.cc
+++ b/gtk2_ardour/editor_actions.cc
@@ -365,7 +365,8 @@ Editor::register_actions ()
reg_sens (editor_actions, "editor-fade-range", _("Fade Range Selection"), sigc::mem_fun(*this, &Editor::fade_range));
- reg_sens (editor_actions, "set-tempo-from-edit-range", _("Set Tempo from Edit Range = Bar"), sigc::mem_fun(*this, &Editor::use_range_as_bar));
+ act = myactions.register_action (editor_actions, "set-tempo-from-edit-range", _("Set Tempo from Edit Range = Bar"), sigc::mem_fun(*this, &Editor::use_range_as_bar));
+ ActionManager::time_selection_sensitive_actions.push_back (act);
toggle_reg_sens (editor_actions, "toggle-log-window", _("Log"),
sigc::mem_fun (ARDOUR_UI::instance(), &ARDOUR_UI::toggle_errors));