Fix mute of MIDI tracks with channel forcing.
[ardour.git] / gtk2_ardour / crossfade_edit.cc
index 9654a9afd9eee66035e375288130d4139d145102..976ca8ff9e8539d88dff159e60b5d7612585cd0b 100644 (file)
@@ -780,7 +780,7 @@ CrossfadeEditor::apply_preset (Preset *preset)
 void
 CrossfadeEditor::apply ()
 {
-       _session->begin_reversible_command (_("Edit crossfade"));
+       the_editor().begin_reversible_command (_("Edit crossfade"));
 
        XMLNode& before = xfade->get_state ();
 
@@ -793,7 +793,7 @@ CrossfadeEditor::apply ()
                        )
                );
 
-       _session->commit_reversible_command ();
+       the_editor().commit_reversible_command ();
 }
 
 void