Files
ardour/libs
Robin Gareus f58f5bef55 Remove region from playlist when the source is destroyed
This fixes the following issue:
1. Import a file to a new track
2. Delete the track
3. Editor Source list: select imported file,
   -> Remove the selected source
   -> Yes, remove the Regions and Sources

The Track and Region no longer exist in the Editor,
only the playlist still exists!

The sources to be deleted are found when iterating over whole-file
regions in `EditorSources::remove_selected_sources`. Also
RegionFactory::get_regions_using_source correctly returns
regions, _editor->remove_regions does nothing since there
is no RegionView for the given region(s). This then cashes in

```
libs/ardour/playlist.cc:2400: virtual XMLNode& ARDOUR::Playlist::state(bool) const: Assertion `r->sources ().size () > 0 && r->master_sources ().size () > 0' failed.
```
2023-05-31 15:39:00 +02:00
..
2023-05-22 04:50:19 +02:00
2023-05-19 06:16:49 +02:00
2023-05-03 15:38:42 +02:00
2023-04-01 17:21:32 +02:00
2022-08-03 12:10:01 -06:00
2023-04-23 11:34:28 -06:00
2023-05-19 03:08:22 +02:00
2023-05-24 23:01:34 +02:00
2023-05-22 21:26:26 +02:00
2022-09-21 19:09:55 -06:00
2023-03-25 07:46:47 +01:00
2023-02-08 02:03:54 +01:00