mirror of https://github.com/odrling/Aegisub
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:
parent
3388281fb7
commit
35fa6c47ce
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue