From 51d57a3fb63cd529cee53314ef407db2e967bf78 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 25 May 2021 15:51:44 -0500 Subject: [PATCH] Source and Region list: fix disappearing list items (break out of the loop instead of returning, so the list always gets thawed) --- gtk2_ardour/editor_regions.cc | 2 +- gtk2_ardour/editor_sources.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_regions.cc b/gtk2_ardour/editor_regions.cc index 554b071214..5dc0e5f209 100644 --- a/gtk2_ardour/editor_regions.cc +++ b/gtk2_ardour/editor_regions.cc @@ -457,7 +457,7 @@ EditorRegions::regions_changed (boost::shared_ptr rl, const Property region_row_map.erase (map_it); _model->erase (r); } - return; + break; } if (map_it != region_row_map.end ()) { diff --git a/gtk2_ardour/editor_sources.cc b/gtk2_ardour/editor_sources.cc index cfe5a303e6..2d26611732 100644 --- a/gtk2_ardour/editor_sources.cc +++ b/gtk2_ardour/editor_sources.cc @@ -517,7 +517,7 @@ EditorSources::regions_changed (boost::shared_ptr rl, PBD::P if (!region->whole_file ()) { /*this isn't on our list anyway; we can ignore it*/ - return; + break; } TreeModel::iterator i;