From 514228ea703402929e9a155517688660acf046a3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 27 Apr 2018 11:02:05 +0200 Subject: 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 --- src/mir_app/src/clistmod.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3