mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-17 17:17:40 +02:00
Bug 2135 - Audacity crashes if launched with a locked pluginregistry.cfg file
This commit is contained in:
parent
d84ce6d147
commit
9e5ec6d9cc
@ -2269,6 +2269,13 @@ void PluginManager::LoadGroup(wxFileConfig *pRegistry, PluginType type)
|
|||||||
|
|
||||||
void PluginManager::Save()
|
void PluginManager::Save()
|
||||||
{
|
{
|
||||||
|
if (!wxFileName(FileNames::PluginRegistry()).IsFileWritable()) {
|
||||||
|
AudacityMessageBox(
|
||||||
|
XO("The plugin registry file is not writable:\n\n%s\n\nSettings were not saved.")
|
||||||
|
.Format(FileNames::PluginRegistry()));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Create/Open the registry
|
// Create/Open the registry
|
||||||
wxFileConfig registry(wxEmptyString, wxEmptyString, FileNames::PluginRegistry());
|
wxFileConfig registry(wxEmptyString, wxEmptyString, FileNames::PluginRegistry());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user