From aca062505b363c6c8c0ae3efd93f81b804251dca Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sun, 19 Jul 2020 10:33:17 -0500 Subject: [PATCH] Region List: do not show empty MIDI regions --- gtk2_ardour/editor_regions.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk2_ardour/editor_regions.cc b/gtk2_ardour/editor_regions.cc index e22ea46c9f..8b7e0e359b 100644 --- a/gtk2_ardour/editor_regions.cc +++ b/gtk2_ardour/editor_regions.cc @@ -383,6 +383,14 @@ EditorRegions::add_region (boost::shared_ptr region) return; } + /* we only show files-on-disk. + * if there's some other kind of region, we ignore it (for now) + */ + boost::shared_ptr fs = boost::dynamic_pointer_cast (region->source()); + if (!fs || fs->empty()) { + return; + } + PropertyChange pc; region_changed (region, pc); }