Relax LV2 plugin filter to substring (e.g. "Utility", "MIDI Utility")
authorRobin Gareus <robin@gareus.org>
Tue, 21 Mar 2017 18:44:22 +0000 (19:44 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 21 Mar 2017 18:44:22 +0000 (19:44 +0100)
libs/ardour/lv2_plugin.cc

index 7923bb66a1577d18c1a6ee179d5bc3f49ed64069..c137efff2aa6acf466869f7408b393f0e64851bd 100644 (file)
@@ -3356,10 +3356,7 @@ LV2PluginInfo::in_category (const std::string &c) const
 {
        // TODO use untranslated lilv_plugin_get_class()
        // match gtk2_ardour/plugin_selector.cc
-       if (category == c) {
-               return true;
-       }
-       return false;
+       return category.find(c) != string::npos;
 }
 
 bool