From c5ac09f8f9da22213e1471370f54343e12a139ac Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 26 Dec 2018 18:29:38 +0300 Subject: Fingerprint: crash fix (after move to m_gui) MenuEx: moved to m_gui --- plugins/FingerprintNG/src/options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/FingerprintNG/src') diff --git a/plugins/FingerprintNG/src/options.cpp b/plugins/FingerprintNG/src/options.cpp index cea4b17c0a..187aca8825 100644 --- a/plugins/FingerprintNG/src/options.cpp +++ b/plugins/FingerprintNG/src/options.cpp @@ -57,13 +57,13 @@ static settings[] = void COptDialog::LoadDBCheckState(int idCtrl, LPCSTR szSetting, BYTE bDef) { - CCtrlCheck item(this, idCtrl); + CCtrlCheck &item = *(CCtrlCheck*)FindControl(idCtrl); item.SetState(g_plugin.getByte(szSetting, bDef)); } void COptDialog::StoreDBCheckState(int idCtrl, LPCSTR szSetting) { - CCtrlCheck item(this, idCtrl); + CCtrlCheck &item = *(CCtrlCheck*)FindControl(idCtrl); g_plugin.setByte(szSetting, item.GetState()); } -- cgit v1.2.3