summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clisttray.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-22 20:31:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-22 20:31:50 +0000
commit2f615cdb8d20660d6731a782b8a90e29628cfbc4 (patch)
treece82df086d3221178e80dfed8ef0cc9b9c9d87f5 /plugins/Clist_modern/src/modern_clisttray.cpp
parent09a1a03baff001ef9aef7310f918e79c8c1f6e97 (diff)
- unused function removed;
- three wrongly removed lines of code restored git-svn-id: http://svn.miranda-ng.org/main/trunk@6188 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clisttray.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clisttray.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/Clist_modern/src/modern_clisttray.cpp b/plugins/Clist_modern/src/modern_clisttray.cpp
index 35bdc19ac3..203a9b25d8 100644
--- a/plugins/Clist_modern/src/modern_clisttray.cpp
+++ b/plugins/Clist_modern/src/modern_clisttray.cpp
@@ -323,7 +323,7 @@ void DestroyTrayMenu(HMENU hMenu)
int cnt = GetMenuItemCount(hMenu);
for (int i=0; i < cnt; ++i) {
HMENU hSubMenu = GetSubMenu(hMenu, i);
- if (hSubMenu == hStatusMenu || hSubMenu == hMainMenu)
+ if (hSubMenu && hSubMenu == hStatusMenu || hSubMenu == hMainMenu)
RemoveMenu(hMenu, i--, MF_BYPOSITION);
}
DestroyMenu(hMenu);
@@ -606,10 +606,4 @@ void UninitTrayMenu()
hTrayMenuObject = NULL;
}
-void InitTray(void)
-{
- InitTrayMenus();
- return;
-}
-
//////////////////////////////END TRAY MENU/////////////////////////