diff options
author | George Hazan <ghazan@miranda.im> | 2018-08-30 12:58:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-08-30 12:58:02 +0300 |
commit | f6f0238e4b6d36fbc4d523382d55ebbfe08ed31a (patch) | |
tree | b5d64c00e12d120b4c192b9fbb958108e22301c2 /src | |
parent | 5e0f2f99192c6cc28e077800371bc0e25fb246de (diff) |
fix of wrong status change processing, caused by a patch for #1304
fixes #1321 (When connecting to only some protocols, the notification area icon shows offline icon)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp index 40f6b5e6cb..6758a23958 100644 --- a/src/mir_app/src/clc.cpp +++ b/src/mir_app/src/clc.cpp @@ -136,14 +136,15 @@ static int ClcProtoAck(WPARAM, LPARAM lParam) if (ack->type == ACKTYPE_STATUS) {
if (ack->result == ACKRESULT_SUCCESS) {
PROTOACCOUNT *pa = Proto_GetAccount(ack->szModule);
- if (pa) {
+ if (pa)
pa->iRealStatus = ack->lParam;
- Clist_TrayIconUpdateBase(ack->szModule);
- }
}
-
+
g_clistApi.pfnCluiProtocolStatusChanged(lParam, ack->szModule);
+ if (ack->result == ACKRESULT_SUCCESS)
+ Clist_TrayIconUpdateBase(ack->szModule);
+
if ((INT_PTR)ack->hProcess < ID_STATUS_ONLINE && ack->lParam >= ID_STATUS_ONLINE) {
// if we're going offline, kill all contacts scheduled for deletion
DWORD caps = (DWORD)CallProtoServiceInt(0, ack->szModule, PS_GETCAPS, PFLAGNUM_1, 0);
|