Pre-shared credentials moved to heap

This commit is contained in:
2016-08-05 11:38:43 +02:00
parent 460adb9858
commit f4be571499
3 changed files with 18 additions and 15 deletions

View File

@@ -253,7 +253,7 @@ protected:
else
m_preshared->SetValue(true);
m_cred = m_cfg.m_preshared;
m_cred = *m_cfg.m_preshared;
return wxEAPCredentialsConfigPanelBase::TransferDataToWindow();
}
@@ -266,7 +266,7 @@ protected:
if (!m_prov.m_read_only) {
// This is not a provider-locked configuration. Save the data.
m_cfg.m_use_preshared = !m_own->GetValue();
m_cfg.m_preshared = m_cred;
*m_cfg.m_preshared = m_cred;
}
return true;