diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-06 00:30:56 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-06 00:30:56 +0000 |
commit | 95939610dd8511f0e6dc1293025c59c8ef5e1505 (patch) | |
tree | a7b7085be2d1e8d36fefe45ca49c84045fe461fc /gtk2_ardour/editor_ops.cc | |
parent | aa78fb928b116c63a883679d2d199063a68c9bce (diff) |
Fix crash on clear current playlists (#3524).
git-svn-id: svn://localhost/ardour2/branches/3.0@7976 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 3 |
1 files changed, 1 insertions, 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> playlist) { - begin_reversible_command (_("clear playlist")); playlist->clear_changes (); playlist->clear (); _session->add_command (new StatefulDiffCommand (playlist)); - commit_reversible_command (); } void |