From 4ebb8d983714a518797deb0adf90022f3f14518f Mon Sep 17 00:00:00 2001 From: Troels Knakkergaard Date: Mon, 21 Dec 2015 12:41:23 +0100 Subject: [PATCH] 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. --- src/common/docview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 24d4508ef7..94bec51439 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -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: