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
1 changed files with 5 additions and 1 deletions

View File

@ -346,8 +346,12 @@ void DialogStyleManager::LoadCatalog() {
}
// 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");
}
// Set to default if available
wxString pickStyle = c->ass->GetScriptInfo("Last Style Storage");