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
e250eb5525
commit
0477d11476
1 changed files with 2 additions and 0 deletions
|
|
@ -430,6 +430,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