OnUpdateUI events are propagated to parent classes now

This commit is contained in:
2016-09-30 09:46:51 +02:00
parent 2bc43869b0
commit 7d986b82d8
3 changed files with 18 additions and 6 deletions

View File

@@ -240,8 +240,10 @@ protected:
}
virtual void OnUpdateUI(wxUpdateUIEvent& /*event*/)
virtual void OnUpdateUI(wxUpdateUIEvent& event)
{
wxEAPConfigDialogBase::OnUpdateUI(event);
int idx = m_providers->GetSelection();
if (idx != wxNOT_FOUND) {
eap::config_provider &cfg_provider = ((_wxT*)m_providers->GetPage(idx))->GetProvider();
@@ -630,8 +632,10 @@ protected:
}
virtual void OnUpdateUI(wxUpdateUIEvent& /*event*/)
virtual void OnUpdateUI(wxUpdateUIEvent& event)
{
wxEAPCredentialsConfigPanelBase::OnUpdateUI(event);
if (m_cfg.m_allow_save) {
if (m_storage->GetValue()) {
m_storage_identity->Enable(true);