]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/button.cpp
fixed wxGTK assert when closing wxMessageDialog
[wxWidgets.git] / src / palmos / button.cpp
index fc794449adf4724cef6b81d823b475bad9a007eb..94dae6c81ca9cecae3a5ff2005b070830973dd0b 100644 (file)
@@ -196,12 +196,14 @@ wxSize wxButtonBase::GetDefaultSize()
     return wxSize(36,12);
 }
 
-void wxButton::SetDefault()
+wxWindow *wxButton::SetDefault()
 {
     FormType* form = (FormType* )GetParentForm();
     if(form==NULL)
-        return;
+        return NULL;
     FrmSetDefaultButtonID(form,GetId());
+
+    return wxButtonBase::SetDefault();
 }
 
 void wxButton::SetTmpDefault()