diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-22 16:20:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-22 16:20:05 +0000 |
commit | f98e2216f98a31dbb0f77b97249aaaee75b345ed (patch) | |
tree | fa1033da7ca1b02a5238c958cfa6fb5da22ef2c4 /plugins/UserInfoEx/src/svc_email.cpp | |
parent | 87cbc0b769f26286166201018c9e0e357c5caa66 (diff) |
massive garbage removal from extra icons module
git-svn-id: http://svn.miranda-ng.org/main/trunk@7340 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/svc_email.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/svc_email.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/plugins/UserInfoEx/src/svc_email.cpp b/plugins/UserInfoEx/src/svc_email.cpp index bcc452c628..55aacd17b5 100644 --- a/plugins/UserInfoEx/src/svc_email.cpp +++ b/plugins/UserInfoEx/src/svc_email.cpp @@ -189,15 +189,11 @@ void SvcEMailRebuildMenu() {
static HANDLE hPrebuildMenuHook = NULL;
- if (db_get_b(NULL, MODNAME, SET_EXTENDED_EMAILSERVICE, TRUE))
- {
+ if (db_get_b(NULL, MODNAME, SET_EXTENDED_EMAILSERVICE, TRUE)) {
if (!hPrebuildMenuHook)
- {
hPrebuildMenuHook = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPreBuildMenu);
- }
- if (!ghMenuItem)
- {
+ if (!ghMenuItem) {
// insert contact menuitem
CLISTMENUITEM mi = { sizeof(mi) };
mi.position = -2000010000;
@@ -207,15 +203,11 @@ void SvcEMailRebuildMenu() ghMenuItem = Menu_AddContactMenuItem(&mi);
}
}
- else
- {
- if (hPrebuildMenuHook)
- {
- UnhookEvent(ME_CLIST_PREBUILDCONTACTMENU);
- hPrebuildMenuHook = NULL;
- }
- if (ghMenuItem)
- {
+ else {
+ if (hPrebuildMenuHook)
+ UnhookEvent(ME_CLIST_PREBUILDCONTACTMENU), hPrebuildMenuHook = NULL;
+
+ if (ghMenuItem) {
CallService(MS_CLIST_REMOVECONTACTMENUITEM, (WPARAM)ghMenuItem, NULL);
ghMenuItem = NULL;
}
@@ -230,7 +222,7 @@ void SvcEMailRebuildMenu() **/
void SvcEMailApplyCListIcons()
{
- //walk through all the contacts stored in the DB
+ // walk through all the contacts stored in the DB
for (HANDLE hContact = db_find_first(); hContact != NULL; hContact = db_find_next(hContact))
OnCListApplyIcons((WPARAM)hContact, 0);
}
|