]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/tipdlg.cpp
Added missing include
[wxWidgets.git] / src / generic / tipdlg.cpp
index 839f75fb2cee1664317db794cbec90de2c39b215..491a0ba700156bc8c85ca03bff9fa451d75abb63 100644 (file)
@@ -215,7 +215,7 @@ END_EVENT_TABLE()
 wxTipDialog::wxTipDialog(wxWindow *parent,
                          wxTipProvider *tipProvider,
                          bool showAtStartup)
-           : wxDialog(parent, wxID_ANY, _("Tip of the Day"),
+           : wxDialog(GetParentForModalDialog(parent), wxID_ANY, _("Tip of the Day"),
                       wxDefaultPosition, wxDefaultSize,
                       wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER
                       )
@@ -228,7 +228,7 @@ wxTipDialog::wxTipDialog(wxWindow *parent,
     // smart phones does not support or do not waste space for wxButtons
 #ifndef __SMARTPHONE__
     wxButton *btnClose = new wxButton(this, wxID_CLOSE);
-    SetEscapeId(wxID_CLOSE);
+    SetAffirmativeId(wxID_CLOSE);
 #endif
 
     m_checkbox = new wxCheckBox(this, wxID_ANY, _("&Show tips at startup"));