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:
Troels Knakkergaard
2015-12-21 12:41:23 +01:00
committed by Vadim Zeitlin
parent 5524cec193
commit 4ebb8d9837

View File

@@ -538,7 +538,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: