EAP-TTLS PAP credentials panel loads correctly now

This commit is contained in:
Simon Rozman 2016-06-15 22:58:07 +02:00
parent a9fdd1d71d
commit 03358170f4

View File

@ -147,7 +147,9 @@ bool wxEAPTTLSConfig::TransferDataToWindow()
} else } else
wxFAIL_MSG(wxT("Unsupported inner authentication method type.")); wxFAIL_MSG(wxT("Unsupported inner authentication method type."));
return wxScrolledWindow::TransferDataToWindow(); // Do not invoke inherited TransferDataToWindow(), as it will call others TransferDataToWindow().
// This will handle wxEAPTTLSConfig::OnInitDialog() via wxEVT_INIT_DIALOG forwarding.
return true /*wxScrolledWindow::TransferDataToWindow()*/;
} }
@ -171,6 +173,9 @@ bool wxEAPTTLSConfig::TransferDataFromWindow()
void wxEAPTTLSConfig::OnInitDialog(wxInitDialogEvent& event) void wxEAPTTLSConfig::OnInitDialog(wxInitDialogEvent& event)
{ {
// Call TransferDataToWindow() manually, as wxScrolledWindow somehow skips that.
TransferDataToWindow();
// Forward the event to child panels. // Forward the event to child panels.
m_outer_identity->GetEventHandler()->ProcessEvent(event); m_outer_identity->GetEventHandler()->ProcessEvent(event);
m_tls->GetEventHandler()->ProcessEvent(event); m_tls->GetEventHandler()->ProcessEvent(event);