diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 14bbd5e762..af3bbd1ed5 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -682,6 +682,7 @@ void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) ) ); dialog.SetDirectory(wxGetHomeDir()); + dialog.CentreOnParent(); if (dialog.ShowModal() == wxID_OK) {