From 03699691934b81f8d59f0ef7018fef7668927165 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 30 Sep 2016 10:57:08 +0200 Subject: [PATCH] Remove CA button enable/disable logic fixed after CA list box switched to single selection in c371187edcc407ae7a1927ceefc1fa3c3220adf5 commit --- lib/TLS_UI/src/TLS_UI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TLS_UI/src/TLS_UI.cpp b/lib/TLS_UI/src/TLS_UI.cpp index 9acc0c9..d3a605e 100644 --- a/lib/TLS_UI/src/TLS_UI.cpp +++ b/lib/TLS_UI/src/TLS_UI.cpp @@ -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,