diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-27 11:02:05 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-27 11:02:05 +0200 |
commit | 514228ea703402929e9a155517688660acf046a3 (patch) | |
tree | 373114052cf3ea680cc5df50660c5b68c5085104 | |
parent | 0fd7fe641f5354f8d38c82dc74d1999a0a3ab294 (diff) |
if there's no need to rebuild icons - don't rebuild them, do that only if needed
fixes usage of the global status icons for the reenabled accounts
-rw-r--r-- | src/mir_app/src/clistmod.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/clistmod.cpp b/src/mir_app/src/clistmod.cpp index 8dd4488972..f7e1cd7c0e 100644 --- a/src/mir_app/src/clistmod.cpp +++ b/src/mir_app/src/clistmod.cpp @@ -169,12 +169,12 @@ static int ContactListAccountsChanged(WPARAM eventCode, LPARAM lParam) switch (eventCode) {
case PRAC_ADDED:
- AddProtoIconIndex(pa);
+ if (pa->iIconBase == -1)
+ AddProtoIconIndex(pa);
break;
case PRAC_REMOVED:
InvalidateProtoInCache(pa->szModuleName);
- pa->iIconBase = -1;
break;
}
|