diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-02-12 19:43:07 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-02-12 19:43:07 +0300 |
| commit | 0c74ee3239a1846e654653ed008c40df2e73a362 (patch) | |
| tree | 7153c37a7bb4568db5d8fca0cabd12d853f9e2b7 /plugins/StatusManager/src/confirmdialog.cpp | |
| parent | 0835d6dd7ee1b7256104871604bc2f31beb3e197 (diff) | |
fixes #4866 (StatusManager: Startup status не видит погоду)
Diffstat (limited to 'plugins/StatusManager/src/confirmdialog.cpp')
| -rw-r--r-- | plugins/StatusManager/src/confirmdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/StatusManager/src/confirmdialog.cpp b/plugins/StatusManager/src/confirmdialog.cpp index 5ef6a719a3..e5417e14e3 100644 --- a/plugins/StatusManager/src/confirmdialog.cpp +++ b/plugins/StatusManager/src/confirmdialog.cpp @@ -312,7 +312,7 @@ static INT_PTR CALLBACK ConfirmDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP } PROTOCOLSETTINGEX *proto = (PROTOCOLSETTINGEX*)lvItem.lParam; - int flags = CallProtoService(proto->m_szName, PS_GETCAPS, PFLAGNUM_2, 0) & ~CallProtoService(proto->m_szName, PS_GETCAPS, (WPARAM)PFLAGNUM_5, 0); + int flags = GetStatusFlags(proto->m_szName); // clear box and add new status, loop status and check if compatible with proto SendDlgItemMessage(hwndDlg, IDC_STATUS, CB_RESETCONTENT, 0, 0); int actualStatus = proto->m_status; @@ -339,7 +339,7 @@ static INT_PTR CALLBACK ConfirmDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP for (auto &it : statusModes) { int pf5 = CallProtoService(proto->m_szName, PS_GETCAPS, PFLAGNUM_5, 0); - if (((flags & it.iFlag) || it.iFlag == PF2_OFFLINE) && (!(!(flags) & Proto_Status2Flag(it.iFlag)) || (pf5 & Proto_Status2Flag(it.iFlag)))) { + if (((flags & it.iFlag) || it.iFlag == PF2_OFFLINE) && (!(!(flags & Proto_Status2Flag(it.iFlag))) || (pf5 & Proto_Status2Flag(it.iFlag)))) { wchar_t *statusMode = Clist_GetStatusModeDescription(it.iStatus, 0); item = SendDlgItemMessage(hwndDlg, IDC_STATUS, CB_ADDSTRING, 0, (LPARAM)statusMode); SendDlgItemMessage(hwndDlg, IDC_STATUS, CB_SETITEMDATA, item, it.iStatus); |
