summaryrefslogtreecommitdiff
path: root/plugins/FingerprintNG/src
diff options
context:
space:
mode:
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());
}