summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-08-12 20:36:33 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-08-12 20:36:33 +0000
commit5d55c351109d18bb46b97c7e6142f6f321595849 (patch)
treee0423a19189dadc6ca8b5b72dd881aa97a2c1ea7 /plugins/MyDetails/src
parent2e2390295cbf3f8f24a938bf957d3ecd5b86d3a6 (diff)
icons registration moved to Load()
git-svn-id: http://svn.miranda-ng.org/main/trunk@10173 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src')
-rw-r--r--plugins/MyDetails/src/mydetails.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/MyDetails/src/mydetails.cpp b/plugins/MyDetails/src/mydetails.cpp
index 0ccf19a2d5..ac4c362c89 100644
--- a/plugins/MyDetails/src/mydetails.cpp
+++ b/plugins/MyDetails/src/mydetails.cpp
@@ -594,10 +594,6 @@ static int MainInit(WPARAM wparam, LPARAM lparam)
InitFrames();
- if (Skin_GetIcon("LISTENING_TO_ICON") == NULL)
- Icon_Register(hInst, LPGEN("Contact list"), iconList, 1);
-
- Icon_Register(hInst, LPGEN("My details"), iconList + 1, SIZEOF(iconList) - 1);
return 0;
}
@@ -624,6 +620,11 @@ extern "C" __declspec(dllexport) int Load()
// Options
InitOptions();
+ if (Skin_GetIcon("LISTENING_TO_ICON") == NULL)
+ Icon_Register(hInst, LPGEN("Contact list"), iconList, 1);
+
+ Icon_Register(hInst, LPGEN("My details"), iconList + 1, SIZEOF(iconList) - 1);
+
// Register services
CreateServiceFunction(MS_MYDETAILS_SETMYNICKNAME, PluginCommand_SetMyNickname);
CreateServiceFunction(MS_MYDETAILS_SETMYNICKNAMEUI, PluginCommand_SetMyNicknameUI);