Remove CA button enable/disable logic fixed after CA list box switched to single selection in c371187edcc407ae7a1927ceefc1fa3c3220adf5 commit

This commit is contained in:
Simon Rozman 2016-09-30 10:57:08 +02:00
parent 7a379a1a87
commit 1d4a77b96b

View File

@ -468,7 +468,7 @@ void wxTLSServerTrustPanel::OnUpdateUI(wxUpdateUIEvent& event)
// This is not a provider-locked configuration. Selectively enable/disable controls.
m_root_ca_add_store->Enable(true);
m_root_ca_add_file ->Enable(true);
m_root_ca_remove ->Enable(ListBox_GetSelCount(m_root_ca->GetHWND()) ? true : false); // *
m_root_ca_remove ->Enable(m_root_ca->HasMultipleSelection() && ListBox_GetSelCount(m_root_ca->GetHWND()) > 0 || m_root_ca->GetSelection() != wxNOT_FOUND); // *
m_server_names ->Enable(true);
// * ListBox_GetSelCount() is not cross-platform, but this is Windows EAP Supplicant,