mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
when cancelling an import, call DropReferences so that the Session forgets about the new sources.
Not doing this leaves the sources in the session list and then the session fails to open on next load because the files are not there. Arguably we should not announce the new files until they are complete, but this is a simpler fix for now.
This commit is contained in:
parent
957de80389
commit
0a7a622dab
1 changed files with 2 additions and 0 deletions
|
|
@ -425,6 +425,8 @@ remove_file_source (boost::shared_ptr<Source> source)
|
|||
{
|
||||
boost::shared_ptr<FileSource> fs = boost::dynamic_pointer_cast<FileSource> (source);
|
||||
|
||||
fs->DropReferences ();
|
||||
|
||||
if (fs) {
|
||||
::g_unlink (fs->path().c_str());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue