Automatically add a "Default" style to the "Default" catalog as 2.1.x did. Patch by cantabile. Closes #1487.

Originally committed to SVN as r6765.
This commit is contained in:
Thomas Goyne 2012-05-13 00:57:34 +00:00
parent 3388281fb7
commit 35fa6c47ce

View file

@ -346,8 +346,12 @@ void DialogStyleManager::LoadCatalog() {
} }
// Create a default storage if there are none // Create a default storage if there are none
if (CatalogList->IsListEmpty()) if (CatalogList->IsListEmpty()) {
Store.Load("Default");
Store.push_back(new AssStyle);
Store.Save();
CatalogList->Append("Default"); CatalogList->Append("Default");
}
// Set to default if available // Set to default if available
wxString pickStyle = c->ass->GetScriptInfo("Last Style Storage"); wxString pickStyle = c->ass->GetScriptInfo("Last Style Storage");