From 46b534a194de3ae413eb57cb20029e07d20defe4 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. (cherry picked from commit 4ebb8d983714a518797deb0adf90022f3f14518f) --- 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 686b5bcbc9..bdabfac7c5 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -532,7 +532,8 @@ bool wxDocument::OnSaveModified() GetUserReadableName() ), wxTheApp->GetAppDisplayName(), - wxYES_NO | wxCANCEL | wxICON_QUESTION | wxCENTRE + wxYES_NO | wxCANCEL | wxICON_QUESTION | wxCENTRE, + GetDocumentWindow() ) ) { case wxNO: