]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/db/listdb.cpp
Committing in .
[wxWidgets.git] / samples / db / listdb.cpp
index d4d197a1602dff1e022e2afe35b2fa0a74acaf1f..f60902a4e626ac6bea3f97a2e19ac829e8662cbf 100644 (file)
@@ -224,7 +224,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, wxChar *windowTitle, wxChar *tableName,
     pLookUpSelectList->SetSelection(0);
 
     // Make the OK activate by pressing Enter
     pLookUpSelectList->SetSelection(0);
 
     // Make the OK activate by pressing Enter
-    if (pLookUpSelectList->Number())
+    if (pLookUpSelectList->GetCount())
         pLookUpOkBtn->SetDefault();
     else
     {
         pLookUpOkBtn->SetDefault();
     else
     {
@@ -384,7 +384,7 @@ ClookUpDlg::ClookUpDlg(wxWindow *parent, wxChar *windowTitle, wxChar *tableName,
     pLookUpSelectList->SetSelection(0);
 
     // Make the OK activate by pressing Enter
     pLookUpSelectList->SetSelection(0);
 
     // Make the OK activate by pressing Enter
-    if (pLookUpSelectList->Number())
+    if (pLookUpSelectList->GetCount())
         pLookUpOkBtn->SetDefault();
     else
     {
         pLookUpOkBtn->SetDefault();
     else
     {