mirror of https://github.com/odrling/Aegisub
Fixed style manager assertion error
Originally committed to SVN as r556.
This commit is contained in:
parent
72071301e4
commit
60c2df968f
|
@ -138,13 +138,13 @@ DialogStyleManager::DialogStyleManager (wxWindow *parent,SubtitlesGrid *_grid)
|
|||
selected_style = dia->Style;
|
||||
}
|
||||
|
||||
if (StorageList->SetStringSelection(selected_style)) {
|
||||
if (StorageList->GetCount() && StorageList->SetStringSelection(selected_style)) {
|
||||
StorageEdit->Enable();
|
||||
StorageCopy->Enable();
|
||||
StorageDelete->Enable();
|
||||
MoveToLocal->Enable();
|
||||
}
|
||||
if (CurrentList->SetStringSelection(selected_style)) {
|
||||
if (CurrentList->GetCount() && CurrentList->SetStringSelection(selected_style)) {
|
||||
CurrentEdit->Enable();
|
||||
CurrentCopy->Enable();
|
||||
CurrentDelete->Enable();
|
||||
|
|
Loading…
Reference in New Issue