diff options
author | Kirill Volinsky <Mataes2007@gmail.com> | 2018-12-26 18:29:38 +0300 |
---|---|---|
committer | Kirill Volinsky <Mataes2007@gmail.com> | 2018-12-26 18:29:38 +0300 |
commit | c5ac09f8f9da22213e1471370f54343e12a139ac (patch) | |
tree | 7dd13ad15aa4e0082a6d9767d83b2f9db0b87e6f /plugins/FingerprintNG/src | |
parent | dd2f0751f8f436f511f62464d77e7a09fa2b2483 (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.cpp | 4 |
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());
}
|