From 9f478bb53be99c6ad5cf69c1a61cc14900cf72b8 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 13 Aug 2014 18:05:18 +0000 Subject: icons registration moved to Load() git-svn-id: http://svn.miranda-ng.org/main/trunk@10180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmileyAdd/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp index 30d45f33fc..3738dfb9f8 100644 --- a/plugins/SmileyAdd/src/main.cpp +++ b/plugins/SmileyAdd/src/main.cpp @@ -50,8 +50,6 @@ static IconItem icon = { LPGEN("Button smiley"), "SmileyAdd_ButtonSmiley", IDI_S static int ModulesLoaded(WPARAM, LPARAM) { - Icon_Register(g_hInst, "SmileyAdd", &icon, 1); - CLISTMENUITEM mi = { sizeof(mi) }; mi.flags = CMIF_ROOTPOPUP; mi.popupPosition = 2000070050; @@ -90,6 +88,8 @@ extern "C" __declspec(dllexport) int Load(void) InitImageCache(); + Icon_Register(g_hInst, "SmileyAdd", &icon, 1); + g_SmileyCategories.SetSmileyPackStore(&g_SmileyPacks); opt.Load(); -- cgit v1.2.3