]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/forty/playerdg.cpp
fixed MSLU check
[wxWidgets.git] / demos / forty / playerdg.cpp
index 0f646e2e328c232e9ed56eaf74cc8e3d2734772e..67e11b68eb7d6e2d4d29cdf50b141fd3ac845891 100644 (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);