Source and Region list: fix disappearing list items (break out of the loop instead of returning, so the list always gets thawed)

This commit is contained in:
Ben Loftis 2021-05-25 15:51:44 -05:00
parent 537d44e3ae
commit 51d57a3fb6
2 changed files with 2 additions and 2 deletions

View File

@ -457,7 +457,7 @@ EditorRegions::regions_changed (boost::shared_ptr<RegionList> rl, const Property
region_row_map.erase (map_it); region_row_map.erase (map_it);
_model->erase (r); _model->erase (r);
} }
return; break;
} }
if (map_it != region_row_map.end ()) { if (map_it != region_row_map.end ()) {

View File

@ -517,7 +517,7 @@ EditorSources::regions_changed (boost::shared_ptr<ARDOUR::RegionList> rl, PBD::P
if (!region->whole_file ()) { if (!region->whole_file ()) {
/*this isn't on our list anyway; we can ignore it*/ /*this isn't on our list anyway; we can ignore it*/
return; break;
} }
TreeModel::iterator i; TreeModel::iterator i;