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:
committed by
Vadim Zeitlin
parent
5524cec193
commit
4ebb8d9837
@@ -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:
|
||||||
|
Reference in New Issue
Block a user