list->SetConstraints(layout);
wxString prevPlayer = m_scoreFile->GetPreviousPlayer();
- if (prevPlayer.Length() > 0)
+ if ((prevPlayer.Length() > 0) && (list->FindString(prevPlayer) != -1))
{
list->SetStringSelection(prevPlayer);
m_textField->SetValue(prevPlayer);
}
Layout();
+
+ CentreOnParent();
}
PlayerSelectionDialog::~PlayerSelectionDialog()