From 3f75ef83bbb4ce3a7184db4c9e45db0cf5f1211d Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 14 Oct 2016 10:29:14 +0200 Subject: [PATCH] Non-saving inner method configuration issue fixed --- lib/TTLS_UI/src/TTLS_UI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/TTLS_UI/src/TTLS_UI.cpp b/lib/TTLS_UI/src/TTLS_UI.cpp index ebf267a..1368b7a 100644 --- a/lib/TTLS_UI/src/TTLS_UI.cpp +++ b/lib/TTLS_UI/src/TTLS_UI.cpp @@ -234,7 +234,7 @@ wxTTLSConfigWindow::~wxTTLSConfigWindow() bool wxTTLSConfigWindow::TransferDataToWindow() { - auto cfg_ttls = dynamic_cast(m_cfg); + auto &cfg_ttls = dynamic_cast(m_cfg); auto cfg_inner_eapmsg = dynamic_cast(cfg_ttls.m_inner.get()); if (!cfg_inner_eapmsg) { @@ -269,7 +269,7 @@ bool wxTTLSConfigWindow::TransferDataFromWindow() { wxCHECK(wxScrolledWindow::TransferDataFromWindow(), false); - auto cfg_ttls = dynamic_cast(m_cfg); + auto &cfg_ttls = dynamic_cast(m_cfg); if (!m_prov.m_read_only) { // This is not a provider-locked configuration. Save the data.