diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-09-17 09:38:17 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-09-17 09:38:17 -0400 |
commit | f415e24514f74c8773e416e7917fdea07eebcf4a (patch) | |
tree | ead1a3d2545d4816cf4060ee9ca2d7a59467242f | |
parent | dc924db851e1db5f2bb90de01ad010c6baa7c8c6 (diff) |
do not stupidly try to save punch/loop/session ranges during clear_ranges op
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 86dab143e9..d79813ab35 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -2119,15 +2119,7 @@ Editor::clear_ranges () _session->begin_reversible_command (_("clear ranges")); XMLNode &before = _session->locations()->get_state(); - Location * looploc = _session->locations()->auto_loop_location(); - Location * punchloc = _session->locations()->auto_punch_location(); - Location * sessionloc = _session->locations()->session_range_location(); - _session->locations()->clear_ranges (); - // re-add these - if (looploc) _session->locations()->add (looploc); - if (punchloc) _session->locations()->add (punchloc); - if (sessionloc) _session->locations()->add (sessionloc); XMLNode &after = _session->locations()->get_state(); _session->add_command(new MementoCommand<Locations>(*(_session->locations()), &before, &after)); |