diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index cc066591b5..9f14c1b3cb 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -820,8 +820,8 @@ wxString wxGetPasswordFromUser(const wxString& message, else style &= ~wxCENTRE; - wxTextEntryDialog dialog(parent, message, caption, defaultValue, - style | wxTE_PASSWORD, wxPoint(x, y)); + wxPasswordEntryDialog dialog(parent, message, caption, defaultValue, + style, wxPoint(x, y)); if ( dialog.ShowModal() == wxID_OK ) { str = dialog.GetValue();