Misc small changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-03-19 19:55:13 +00:00
parent 1f3c610d03
commit 281b0186b8
16 changed files with 86 additions and 25 deletions

View File

@@ -116,7 +116,7 @@ PlayerSelectionDialog::PlayerSelectionDialog(
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);