Actions - make set-tempo-from-edit-range sensitive to time selection.
authornick_m <mainsbridge@gmail.com>
Thu, 2 Jun 2016 17:16:50 +0000 (03:16 +1000)
committernick_m <mainsbridge@gmail.com>
Thu, 2 Jun 2016 17:16:50 +0000 (03:16 +1000)
gtk2_ardour/editor_actions.cc

index 3924ad25f8a1eba4a8b1f32e032397327e8d5c48..856d6b889de6fa7f493e4ff27d18e8a879e17f30 100644 (file)
@@ -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));