Use document window as parent for "Save changes?" dialog
This ensures that the message box is centered on its parent window and not the screen. Closes #17295.
This commit is contained in:
parent
5524cec193
commit
4ebb8d9837
@ -538,7 +538,8 @@ bool wxDocument::OnSaveModified()
|
||||
GetUserReadableName()
|
||||
),
|
||||
wxTheApp->GetAppDisplayName(),
|
||||
wxYES_NO | wxCANCEL | wxICON_QUESTION | wxCENTRE
|
||||
wxYES_NO | wxCANCEL | wxICON_QUESTION | wxCENTRE,
|
||||
GetDocumentWindow()
|
||||
) )
|
||||
{
|
||||
case wxNO:
|
||||
|
Loading…
Reference in New Issue
Block a user