added wxDialog::GetParentForModalDialog() and use it to try to always create modal dialogs with a parent (slightly modified patch 1702962)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user