summaryrefslogtreecommitdiff
path: root/plugins/MobileState/src/main.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-19 19:18:40 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-19 19:18:40 +0000
commit3344e2189f3585a9ac407b56aa78547b3f769bc8 (patch)
treed898212412c196e5ddd70a2e619b0a55d7cb6933 /plugins/MobileState/src/main.cpp
parentd9afe7697ba309f6d78b61adea474942c0b55424 (diff)
MobileState: add new facebook clients recognition
git-svn-id: http://svn.miranda-ng.org/main/trunk@6941 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MobileState/src/main.cpp')
-rw-r--r--plugins/MobileState/src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp
index 8e57f294bd..17de9672af 100644
--- a/plugins/MobileState/src/main.cpp
+++ b/plugins/MobileState/src/main.cpp
@@ -71,9 +71,11 @@ int ExtraIconsApply(WPARAM wParam, LPARAM lParam)
if (wParam == NULL)
return 0;
- const char *icon = hasMobileClient((HANDLE) wParam, lParam) ? "mobile_icon" : NULL;
+ if (hasMobileClient((HANDLE)wParam, lParam))
+ ExtraIcon_SetIcon(hExtraIcon, (HANDLE)wParam, "mobile_icon");
+ else
+ ExtraIcon_Clear(hExtraIcon, (HANDLE)wParam);
- ExtraIcon_SetIcon(hExtraIcon, (HANDLE)wParam, icon);
return 0;
}