From 0a4edf42be37bf12786e668837488ce074f476f2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Nov 2012 14:06:55 +0000 Subject: more cleaning of icons' names git-svn-id: http://svn.miranda-ng.org/main/trunk@2372 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/extraicons/DefaultExtraIcons.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/modules/extraicons') diff --git a/src/modules/extraicons/DefaultExtraIcons.cpp b/src/modules/extraicons/DefaultExtraIcons.cpp index 5a7917a331..5e5c3da926 100644 --- a/src/modules/extraicons/DefaultExtraIcons.cpp +++ b/src/modules/extraicons/DefaultExtraIcons.cpp @@ -76,23 +76,18 @@ static void SetVisibility(HANDLE hContact, int apparentMode, BOOL clear) if (apparentMode == ID_STATUS_OFFLINE) ico = "ChatActivity"; - if (ico == NULL && !clear) - return; - - ExtraIcon_SetIcon(hExtraChat, hContact, ico); + if (ico != NULL || clear) + ExtraIcon_SetIcon(hExtraChat, hContact, ico); } else { // Not chat if (apparentMode == ID_STATUS_OFFLINE) ico = "core_main_47"; - else if (apparentMode == ID_STATUS_ONLINE) ico = "core_main_46"; - if (ico == NULL && !clear) - return; - - ExtraIcon_SetIcon(hExtraVisibility, hContact, ico); + if (ico != NULL || clear) + ExtraIcon_SetIcon(hExtraVisibility, hContact, ico); } } -- cgit v1.2.3