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:
committed by
Paul Cornett
parent
8cea217701
commit
46b534a194
@@ -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:
|
||||
|
Reference in New Issue
Block a user