diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-10-15 21:12:19 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-10-15 21:12:35 -0400 |
commit | 0477d11476feb873e4ed3e428dd4d3c510d7e0b0 (patch) | |
tree | 12dc8ddd34d8d67c317ade585e9d4bcec2ddca1c /libs | |
parent | e250eb55257c596ccf92dbbaed2710c07c6a4473 (diff) |
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.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/import.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/import.cc b/libs/ardour/import.cc index 6b58621979..1303c85511 100644 --- a/libs/ardour/import.cc +++ b/libs/ardour/import.cc @@ -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()); } |