diff options
author | George Hazan <george.hazan@gmail.com> | 2012-11-19 17:59:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-11-19 17:59:03 +0000 |
commit | 6a519f13155c9012db6fb95f7f48a74029d6e3d2 (patch) | |
tree | 140d3e46bc2786d96eff7a2366fa61740331b4b5 /src/modules/extraicons/DefaultExtraIcons.cpp | |
parent | 32f40b0ecb51fe9bee56e4f7ce2476c4cff53bed (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2379 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/extraicons/DefaultExtraIcons.cpp')
-rw-r--r-- | src/modules/extraicons/DefaultExtraIcons.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/extraicons/DefaultExtraIcons.cpp b/src/modules/extraicons/DefaultExtraIcons.cpp index 5e5c3da926..872c5915cc 100644 --- a/src/modules/extraicons/DefaultExtraIcons.cpp +++ b/src/modules/extraicons/DefaultExtraIcons.cpp @@ -113,10 +113,8 @@ static void SetGender(HANDLE hContact, int gender, BOOL clear) else
ico = NULL;
- if (ico == NULL && !clear)
- return;
-
- ExtraIcon_SetIcon(hExtraGender, hContact, ico);
+ if (ico != NULL || clear)
+ ExtraIcon_SetIcon(hExtraGender, hContact, ico);
}
static void EmailOnClick(Info *info, const char *text);
|