summaryrefslogtreecommitdiff
path: root/protocols/MRA/MraProto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MRA/MraProto.cpp')
-rw-r--r--protocols/MRA/MraProto.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/protocols/MRA/MraProto.cpp b/protocols/MRA/MraProto.cpp
index 563d2d3ca1..be7c61cc98 100644
--- a/protocols/MRA/MraProto.cpp
+++ b/protocols/MRA/MraProto.cpp
@@ -72,14 +72,7 @@ CMraProto::CMraProto(const char* _module, const TCHAR* _displayName) :
HookEvent(ME_SYSTEM_PRESHUTDOWN, &CMraProto::OnPreShutdown);
HookEvent(ME_CLIST_EXTRA_LIST_REBUILD, &CMraProto::MraExtraIconsRebuild);
- IconsLoad();
-
- // Main menu initialization
- HICON hMainIcon = (HICON)LoadImage(masMraSettings.hInstance, MAKEINTRESOURCE(IDI_MRA), IMAGE_ICON, 0, 0, LR_SHARED);
- CListCreateMenu(200001, 500085000, hMainIcon, NULL, TRUE, gdiMenuItems, hMainMenuIcons, gdiMenuItemsCount, hMainMenuItems);
-
- // Contact menu initialization
- CListCreateMenu(2000060000, -500050000, NULL, NULL, FALSE, gdiContactMenuItems, hContactMenuIcons, gdiContactMenuItemsCount, hContactMenuItems);
+ InitMenus();
// xstatus menu
InitXStatusIcons();
@@ -112,7 +105,6 @@ CMraProto::~CMraProto()
Netlib_CloseHandle(hNetlibUser);
DestroyXStatusIcons();
- IconsUnLoad();
if (heNudgeReceived)
DestroyHookableEvent(heNudgeReceived);