summaryrefslogtreecommitdiff
path: root/gtk2_ardour/step_entry.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-02-28 23:54:42 +0100
committerRobin Gareus <robin@gareus.org>2019-02-28 23:54:42 +0100
commit82440265339b69983eda71167a563407bb35acb8 (patch)
tree6ad08e7a0d01605d193824af72766dfe03a4dab9 /gtk2_ardour/step_entry.cc
parent00934aec0db8c9fbf0361cdbc4472ae909f1212d (diff)
Consolidate ToggleAction cast, use new API
Furthermore we can assume that all Actions are registered and Unregistered actions will ::abort() execution.
Diffstat (limited to 'gtk2_ardour/step_entry.cc')
-rw-r--r--gtk2_ardour/step_entry.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk2_ardour/step_entry.cc b/gtk2_ardour/step_entry.cc
index 7dc9d17805..5913a09cab 100644
--- a/gtk2_ardour/step_entry.cc
+++ b/gtk2_ardour/step_entry.cc
@@ -550,8 +550,7 @@ StepEntry::note_length ()
{
double base_time = 4.0 / (double) length_divisor_adjustment.get_value();
- RefPtr<Action> act = ActionManager::get_action ("StepEditing/toggle-triplet");
- RefPtr<ToggleAction> tact = RefPtr<ToggleAction>::cast_dynamic (act);
+ RefPtr<ToggleAction> tact = ActionManager::get_toggle_action ("StepEditing/toggle-triplet");
bool triplets = tact->get_active ();
if (triplets) {