eap::config_method_eaphost::get_method_str() finished

This commit is contained in:
2016-10-25 11:06:11 +02:00
parent 65ea47eb4e
commit dd55dfd24d
8 changed files with 70 additions and 13 deletions

View File

@@ -68,7 +68,7 @@ bool wxEapHostMethodConfigPanel::TransferDataToWindow()
// Find configured method and set its selection and configuration BLOB.
for (unsigned int i = 0, n = m_method->GetCount(); i < n; i++) {
wxEAPMethodTypeClientData *data = dynamic_cast<wxEAPMethodTypeClientData*>(m_method->GetClientObject(i));
if (data->m_type == m_cfg.m_type) {
if (data->m_type == m_cfg.get_type()) {
m_method->SetSelection(i);
data->m_cfg_blob = m_cfg.m_cfg_blob;
}
@@ -90,7 +90,7 @@ bool wxEapHostMethodConfigPanel::TransferDataFromWindow()
NULL;
if (data) {
// Save method selection and configuration.
m_cfg.m_type = data->m_type;
m_cfg.set_type(data->m_type);
m_cfg.m_cfg_blob = data->m_cfg_blob;
}