Use the appropriate parent for the choice dialogs
Fall back to the main application window if no parent was explicitly specified
using the standard GetParentForModalDialog() method.
See #17295
(cherry picked from commit 50435ef678
)
This commit is contained in:
committed by
Paul Cornett
parent
f0f83adecf
commit
d71d1a50e5
@@ -390,7 +390,7 @@ bool wxAnyChoiceDialog::Create(wxWindow *parent,
|
||||
const long styleBtns = styleDlg & (wxOK | wxCANCEL);
|
||||
styleDlg &= ~styleBtns;
|
||||
|
||||
if ( !wxDialog::Create(parent, wxID_ANY, caption, pos, wxDefaultSize, styleDlg) )
|
||||
if ( !wxDialog::Create(GetParentForModalDialog(parent, styleDlg), wxID_ANY, caption, pos, wxDefaultSize, styleDlg) )
|
||||
return false;
|
||||
|
||||
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
Reference in New Issue
Block a user