diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-26 20:55:52 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-26 20:55:52 +0200 |
commit | 4e1108415aa674f80fd5f7d5d759b1c793e71fd5 (patch) | |
tree | 2b6d8f2f8e465d037c2dffd9ab23908d0f1875cb /src | |
parent | b929a9a11f329649e578aa86ca403637e5470894 (diff) |
fixes #1304 (Clist_nicer: statuses bug)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/clc.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mir_app/src/clc.cpp b/src/mir_app/src/clc.cpp index 5b72ddb2ab..a7ebcd0bb9 100644 --- a/src/mir_app/src/clc.cpp +++ b/src/mir_app/src/clc.cpp @@ -134,6 +134,14 @@ static int ClcProtoAck(WPARAM, LPARAM lParam) {
ACKDATA *ack = (ACKDATA *)lParam;
if (ack->type == ACKTYPE_STATUS) {
+ if (ack->result == ACKRESULT_SUCCESS) {
+ PROTOACCOUNT *pa = Proto_GetAccount(ack->szModule);
+ if (pa) {
+ pa->iRealStatus = ack->lParam;
+ Clist_TrayIconUpdateBase(ack->szModule);
+ }
+ }
+
cli.pfnCluiProtocolStatusChanged(lParam, ack->szModule);
if ((INT_PTR)ack->hProcess < ID_STATUS_ONLINE && ack->lParam >= ID_STATUS_ONLINE) {
@@ -150,14 +158,6 @@ static int ClcProtoAck(WPARAM, LPARAM lParam) }
WindowList_BroadcastAsync(hClcWindowList, INTM_INVALIDATE, 0, 0);
-
- if (ack->result == ACKRESULT_SUCCESS) {
- PROTOACCOUNT *pa = Proto_GetAccount(ack->szModule);
- if (pa) {
- pa->iRealStatus = ack->lParam;
- Clist_TrayIconUpdateBase(ack->szModule);
- }
- }
}
return 0;
}
|