Remove as well as destroying last capture regions. Closes #2971.

git-svn-id: svn://localhost/ardour2/branches/3.0@6405 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2009-12-28 02:23:20 +00:00
parent b37dbcea75
commit 8e65788ef0

View File

@@ -2949,6 +2949,10 @@ Session::remove_last_capture ()
}
}
for (list<boost::shared_ptr<Region> >::iterator i = r.begin(); i != r.end(); ++i) {
remove_region (*i);
}
destroy_regions (r);
save_state (_current_snapshot_name);