diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-19 14:06:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-19 14:06:55 +0000 |
commit | 0a4edf42be37bf12786e668837488ce074f476f2 (patch) | |
tree | e2d4e17f25dc357e1d6bb0bdc15476f3ca148567 /src/modules | |
parent | 32dedc767dec565c576b78b786e7a95d76ac806e (diff) |
more cleaning of icons' names
git-svn-id: http://svn.miranda-ng.org/main/trunk@2372 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extraicons/DefaultExtraIcons.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
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);
}
}
|