Fixed style manager assertion error

Originally committed to SVN as r556.
This commit is contained in:
Rodrigo Braz Monteiro 2006-11-30 23:37:34 +00:00
parent 72071301e4
commit 60c2df968f
1 changed files with 2 additions and 2 deletions

View File

@ -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();