diff options
Diffstat (limited to 'protocols/Dummy/src/dummy_options.cpp')
-rw-r--r-- | protocols/Dummy/src/dummy_options.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Dummy/src/dummy_options.cpp b/protocols/Dummy/src/dummy_options.cpp index d1d7175905..205a74814d 100644 --- a/protocols/Dummy/src/dummy_options.cpp +++ b/protocols/Dummy/src/dummy_options.cpp @@ -1,5 +1,5 @@ /*
-Copyright (c) 2014-17 Robert Pösel, 2017-24 Miranda NG team
+Copyright (c) 2014-17 Robert Pösel, 2017-25 Miranda NG team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -38,8 +38,7 @@ INT_PTR CALLBACK DummyAccountProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM int templateId = ppro->getTemplateId();
SendDlgItemMessage(hwndDlg, IDC_TEMPLATE, CB_SETCURSEL, templateId, 0);
- boolean allowSending = ppro->getByte(DUMMY_KEY_ALLOW_SENDING, 0);
- CheckDlgButton(hwndDlg, IDC_ALLOW_SENDING, allowSending ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, IDC_ALLOW_SENDING, ppro->bAllowSending ? BST_CHECKED : BST_UNCHECKED);
ppro->selectTemplate(hwndDlg, templateId);
}
@@ -81,7 +80,7 @@ INT_PTR CALLBACK DummyAccountProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM ppro->setString(DUMMY_ID_SETTING, str);
}
- ppro->setByte(DUMMY_KEY_ALLOW_SENDING, IsDlgButtonChecked(hwndDlg, IDC_ALLOW_SENDING));
+ ppro->bAllowSending = IsDlgButtonChecked(hwndDlg, IDC_ALLOW_SENDING);
}
break;
|