no whole file regions in triggerbox slots

This commit is contained in:
Paul Davis 2022-10-11 12:56:37 -06:00
parent f9a2da3426
commit d69dfc26a6

View File

@ -665,7 +665,15 @@ Trigger::clear_region ()
void
Trigger::set_region_internal (boost::shared_ptr<Region> r)
{
_region = r;
/* No whole file regions in the triggerbox, just like we do not allow
* them in playlists either.
*/
if (r->whole_file ()) {
_region = RegionFactory::create (r, r->derive_properties ());
} else {
_region = r;
}
}
timepos_t