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;
|
selected_style = dia->Style;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StorageList->SetStringSelection(selected_style)) {
|
if (StorageList->GetCount() && StorageList->SetStringSelection(selected_style)) {
|
||||||
StorageEdit->Enable();
|
StorageEdit->Enable();
|
||||||
StorageCopy->Enable();
|
StorageCopy->Enable();
|
||||||
StorageDelete->Enable();
|
StorageDelete->Enable();
|
||||||
MoveToLocal->Enable();
|
MoveToLocal->Enable();
|
||||||
}
|
}
|
||||||
if (CurrentList->SetStringSelection(selected_style)) {
|
if (CurrentList->GetCount() && CurrentList->SetStringSelection(selected_style)) {
|
||||||
CurrentEdit->Enable();
|
CurrentEdit->Enable();
|
||||||
CurrentCopy->Enable();
|
CurrentCopy->Enable();
|
||||||
CurrentDelete->Enable();
|
CurrentDelete->Enable();
|
||||||
|
|
Loading…
Reference in New Issue