13
0

Region List: do not show empty MIDI regions

This commit is contained in:
Ben Loftis 2020-07-19 10:33:17 -05:00
parent 5cdaa5f935
commit aca062505b

View File

@ -383,6 +383,14 @@ EditorRegions::add_region (boost::shared_ptr<Region> region)
return;
}
/* we only show files-on-disk.
* if there's some other kind of region, we ignore it (for now)
*/
boost::shared_ptr<FileSource> fs = boost::dynamic_pointer_cast<FileSource> (region->source());
if (!fs || fs->empty()) {
return;
}
PropertyChange pc;
region_changed (region, pc);
}