diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-09 19:57:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-09 19:57:09 +0300 |
commit | 85f20195ec2408938c5c06821914d1cc4dce1b41 (patch) | |
tree | a955886852026c09c7fc5fc48597211643947ecb /plugins/StatusManager/src/AdvancedAutoAway/aaa_options.cpp | |
parent | e9fd088531d1520799f8ac48086cc9ae6656395e (diff) |
StatusManager:
- fix for the 'Ignore locked account statuses' checkbox behaviour;
- massive code cleaning;
- version bump
Diffstat (limited to 'plugins/StatusManager/src/AdvancedAutoAway/aaa_options.cpp')
-rw-r--r-- | plugins/StatusManager/src/AdvancedAutoAway/aaa_options.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/StatusManager/src/AdvancedAutoAway/aaa_options.cpp b/plugins/StatusManager/src/AdvancedAutoAway/aaa_options.cpp index df1055b5df..4b38ce59f8 100644 --- a/plugins/StatusManager/src/AdvancedAutoAway/aaa_options.cpp +++ b/plugins/StatusManager/src/AdvancedAutoAway/aaa_options.cpp @@ -121,7 +121,7 @@ static void SetDialogStatus(HWND hwndDlg, TAAAProtoSetting *sameSetting) int AAACompareSettings(const TAAAProtoSetting *p1, const TAAAProtoSetting *p2) { - return mir_strcmp(p1->szName, p2->szName); + return mir_strcmp(p1->m_szName, p2->m_szName); } static TAAAProtoSettingList optionSettings(10, AAACompareSettings); @@ -147,7 +147,7 @@ static INT_PTR CALLBACK DlgProcAutoAwayRulesOpts(HWND hwndDlg, UINT msg, WPARAM { for (int i = 0; i < optionSettings.getCount(); i++) { TAAAProtoSetting &p = optionSettings[i]; - int item = SendDlgItemMessage(hwndDlg, IDC_PROTOCOL, CB_ADDSTRING, 0, (LPARAM)p.tszAccName); + int item = SendDlgItemMessage(hwndDlg, IDC_PROTOCOL, CB_ADDSTRING, 0, (LPARAM)p.m_tszAccName); SendDlgItemMessage(hwndDlg, IDC_PROTOCOL, CB_SETITEMDATA, item, (LPARAM)&p); } } @@ -179,7 +179,7 @@ static INT_PTR CALLBACK DlgProcAutoAwayRulesOpts(HWND hwndDlg, UINT msg, WPARAM int flags = 0; if (!bSettingSame) - flags = CallProtoService(setting->szName, PS_GETCAPS, PFLAGNUM_2, 0)&~CallProtoService(setting->szName, PS_GETCAPS, (WPARAM)PFLAGNUM_5, 0); + flags = CallProtoService(setting->m_szName, PS_GETCAPS, PFLAGNUM_2, 0)&~CallProtoService(setting->m_szName, PS_GETCAPS, (WPARAM)PFLAGNUM_5, 0); LVITEM lvItem = { 0 }; lvItem.mask = LVIF_TEXT | LVIF_PARAM; @@ -200,7 +200,7 @@ static INT_PTR CALLBACK DlgProcAutoAwayRulesOpts(HWND hwndDlg, UINT msg, WPARAM { int flags = 0; if (!bSettingSame) - flags = CallProtoService(setting->szName, PS_GETCAPS, PFLAGNUM_2, 0)&~CallProtoService(setting->szName, PS_GETCAPS, (WPARAM)PFLAGNUM_5, 0); + flags = CallProtoService(setting->m_szName, PS_GETCAPS, PFLAGNUM_2, 0)&~CallProtoService(setting->m_szName, PS_GETCAPS, (WPARAM)PFLAGNUM_5, 0); // clear box and add new status, loop status and check if compatible with proto SendDlgItemMessage(hwndDlg, IDC_LV1STATUS, CB_RESETCONTENT, 0, 0); @@ -340,7 +340,7 @@ static INT_PTR CALLBACK DlgProcAutoAwayRulesOpts(HWND hwndDlg, UINT msg, WPARAM WriteAutoAwaySetting(*sameSetting, SETTING_ALL); else { for (int i = 0; i < optionSettings.getCount(); i++) - WriteAutoAwaySetting(optionSettings[i], optionSettings[i].szName); + WriteAutoAwaySetting(optionSettings[i], optionSettings[i].m_szName); } AAALoadOptions(autoAwaySettings, FALSE); } |