Credential dialog is no longer displayed partially off the screen

This commit is contained in:
Simon Rozman 2016-07-21 23:53:40 +02:00
parent 3e60bebe3a
commit aafd012809

View File

@ -103,6 +103,7 @@ bool eap::peer_ttls_ui::invoke_identity_ui(
wxEAPCredentialsDialog dlg(cfg_prov, &parent);
wxTTLSCredentialsPanel *panel = new wxTTLSCredentialsPanel(cfg_prov, *cfg_method, cred, cfg_prov.m_id.c_str(), &dlg);
dlg.AddContents((wxPanel**)&panel, 1);
dlg.Centre(wxBOTH);
result = dlg.ShowModal();
wxTopLevelWindows.DeleteObject(&parent);