mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Fix crash on clear current playlists (#3524).
git-svn-id: svn://localhost/ardour2/branches/3.0@7976 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
aa78fb928b
commit
95939610dd
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue