1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-12 07:35:51 +01:00

Fix crash when certain effects are open and a new project window is created

This affected VST, LADSPA, LV2, and Audio Unit effects.
This commit is contained in:
Leland Lucius
2015-05-16 22:10:09 -05:00
parent 0d89483df7
commit a7203c5d3f
3 changed files with 19 additions and 2 deletions

View File

@@ -147,6 +147,18 @@ wxString EffectManager::GetEffectDescription(const PluginID & ID)
return wxEmptyString;
}
bool EffectManager::IsHidden(const PluginID & ID)
{
Effect *effect = GetEffect(ID);
if (effect)
{
return effect->IsHidden();
}
return false;
}
bool EffectManager::SupportsAutomation(const PluginID & ID)
{
const PluginDescriptor *plug = PluginManager::Get().GetPlugin(ID);

View File

@@ -76,6 +76,7 @@ public:
wxString GetEffectName(const PluginID & ID);
wxString GetEffectIdentifier(const PluginID & ID);
wxString GetEffectDescription(const PluginID & ID);
bool IsHidden(const PluginID & ID);
/** Support for batch commands */
bool SupportsAutomation(const PluginID & ID);