mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
Skip presets lookup for empty prest URI
This commit is contained in:
parent
e9c90bc1b2
commit
68b23b9f82
1 changed files with 3 additions and 0 deletions
|
|
@ -368,6 +368,9 @@ Plugin::preset_by_label (const string& label)
|
|||
const Plugin::PresetRecord *
|
||||
Plugin::preset_by_uri (const string& uri)
|
||||
{
|
||||
if (uri.empty ()) {
|
||||
return 0;
|
||||
}
|
||||
if (!_have_presets) {
|
||||
find_presets ();
|
||||
_have_presets = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue