X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82ea63e6e046652bc0799badd9d62f91c9918dbe..bbc3925a8a46e8c80b22277f5571dfb2465aca25:/demos/forty/playerdg.cpp?ds=sidebyside diff --git a/demos/forty/playerdg.cpp b/demos/forty/playerdg.cpp index 0f646e2e32..67e11b68eb 100644 --- a/demos/forty/playerdg.cpp +++ b/demos/forty/playerdg.cpp @@ -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);