1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-10 16:35:32 +01:00

Fix a few things with chain/effect parameters as reported by Gale

This commit is contained in:
Leland Lucius
2015-04-29 09:54:48 -05:00
parent 7950d4fd5a
commit 20fbb163d2
3 changed files with 30 additions and 2 deletions

View File

@@ -2289,7 +2289,19 @@ wxFileConfig *PluginManager::GetSettings()
bool PluginManager::HasGroup(const wxString & group)
{
return GetSettings()->HasGroup(group);
wxFileConfig *settings = GetSettings();
bool res = settings->HasGroup(group);
if (res)
{
// The group exists, but empty groups aren't considered valid
wxString oldPath = settings->GetPath();
settings->SetPath(group);
res = settings->GetNumberOfEntries() || settings->GetNumberOfGroups();
settings->SetPath(oldPath);
}
return res;
}
bool PluginManager::GetSubgroups(const wxString & group, wxArrayString & subgroups)