X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba7a4bfbbb278a6026cd3b873e36a733d8ccb399..601398b9b1e63109f44af34ff79bc558fe929b4d:/src/generic/tipdlg.cpp diff --git a/src/generic/tipdlg.cpp b/src/generic/tipdlg.cpp index 839f75fb2c..491a0ba700 100644 --- a/src/generic/tipdlg.cpp +++ b/src/generic/tipdlg.cpp @@ -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"));