From 95939610dd8511f0e6dc1293025c59c8ef5e1505 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 6 Nov 2010 00:30:56 +0000 Subject: [PATCH] Fix crash on clear current playlists (#3524). git-svn-id: svn://localhost/ardour2/branches/3.0@7976 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_ops.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 523587ed22..3cf4e1747a 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4281,14 +4281,13 @@ Editor::center_edit_point () center_screen_internal (get_preferred_edit_position(), page); } +/** Caller must begin and commit a reversible command */ void Editor::clear_playlist (boost::shared_ptr playlist) { - begin_reversible_command (_("clear playlist")); playlist->clear_changes (); playlist->clear (); _session->add_command (new StatefulDiffCommand (playlist)); - commit_reversible_command (); } void