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:
@@ -136,7 +136,8 @@ END_EVENT_TABLE()
|
||||
|
||||
wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent,
|
||||
wxPrintDialogData* data)
|
||||
: wxPrintDialogBase(parent, wxID_ANY, _("Print"),
|
||||
: wxPrintDialogBase(GetParentForModalDialog(parent),
|
||||
wxID_ANY, _("Print"),
|
||||
wxPoint(0,0), wxSize(600, 600),
|
||||
wxDEFAULT_DIALOG_STYLE |
|
||||
wxTAB_TRAVERSAL)
|
||||
@@ -149,7 +150,8 @@ wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent,
|
||||
|
||||
wxGenericPrintDialog::wxGenericPrintDialog(wxWindow *parent,
|
||||
wxPrintData* data)
|
||||
: wxPrintDialogBase(parent, wxID_ANY, _("Print"),
|
||||
: wxPrintDialogBase(GetParentForModalDialog(parent),
|
||||
wxID_ANY, _("Print"),
|
||||
wxPoint(0,0), wxSize(600, 600),
|
||||
wxDEFAULT_DIALOG_STYLE |
|
||||
wxTAB_TRAVERSAL)
|
||||
|
||||
Reference in New Issue
Block a user