Browse Source

Fix assertion due to juce category name being empty

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 4 years ago
parent
commit
a0a25d23f0
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      source/backend/plugin/CarlaPluginJuce.cpp

+ 4
- 1
source/backend/plugin/CarlaPluginJuce.cpp View File

@@ -128,7 +128,10 @@ public:
{
if (fDesc.isInstrument)
return PLUGIN_CATEGORY_SYNTH;
return getPluginCategoryFromName(fDesc.category.toRawUTF8());

return getPluginCategoryFromName(fDesc.category.isNotEmpty()
? fDesc.category.toRawUTF8()
: fDesc.name.toRawUTF8());
}

int64_t getUniqueId() const noexcept override


Loading…
Cancel
Save