summaryrefslogtreecommitdiff
path: root/plugins/FingerprintNG/src
diff options
context:
space:
mode:
authorKirill Volinsky <Mataes2007@gmail.com>2018-12-26 18:29:38 +0300
committerKirill Volinsky <Mataes2007@gmail.com>2018-12-26 18:29:38 +0300
commitc5ac09f8f9da22213e1471370f54343e12a139ac (patch)
tree7dd13ad15aa4e0082a6d9767d83b2f9db0b87e6f /plugins/FingerprintNG/src
parentdd2f0751f8f436f511f62464d77e7a09fa2b2483 (diff)
Fingerprint: crash fix (after move to m_gui)
MenuEx: moved to m_gui
Diffstat (limited to 'plugins/FingerprintNG/src')
-rw-r--r--plugins/FingerprintNG/src/options.cpp4
1 files changed, 2 insertions, 2 deletions
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());
}