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.

(cherry picked from commit 4ebb8d9837)
This commit is contained in:
Troels Knakkergaard
2015-12-21 12:41:23 +01:00
committed by Paul Cornett
parent 8cea217701
commit 46b534a194

View File

@@ -532,7 +532,8 @@ bool wxDocument::OnSaveModified()
GetUserReadableName() GetUserReadableName()
), ),
wxTheApp->GetAppDisplayName(), wxTheApp->GetAppDisplayName(),
wxYES_NO | wxCANCEL | wxICON_QUESTION | wxCENTRE wxYES_NO | wxCANCEL | wxICON_QUESTION | wxCENTRE,
GetDocumentWindow()
) ) ) )
{ {
case wxNO: case wxNO: