diff options
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);
|
