From 16dfb410bcda40e3b34e296e07098f7329309e15 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 18 Dec 2021 08:29:35 -0700 Subject: [PATCH] triggerbox: catch failure to load files --- libs/ardour/triggerbox.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index 3be7e53b7d..02bd39fe82 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -1775,6 +1775,11 @@ TriggerBox::set_from_path (uint64_t slot, std::string const & path) return; } + if (status.sources.empty()) { + error << string_compose (_("Could not create source from %1"), path) << endmsg; + return; + } + /* XXX need to check data type */ SourceList src_list;