do not stupidly try to save punch/loop/session ranges during clear_ranges op
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 17 Sep 2014 13:38:17 +0000 (09:38 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 17 Sep 2014 13:38:17 +0000 (09:38 -0400)
gtk2_ardour/editor_ops.cc

index 86dab143e99f9c11d2da2fc891f0cd7337460ff2..d79813ab352edb3f6626336c6d6cfdb28a02da98 100644 (file)
@@ -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));