diff options
Diffstat (limited to 'src/modules/extraicons/DefaultExtraIcons.cpp')
-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);
}
}
|