From 851d0e2f455631ebb4548b7e771e7e88dccd466d Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Wed, 5 Mar 2014 13:54:15 +0000 Subject: RecentContact fix: TopToolBar hook correct call git-svn-id: http://svn.miranda-ng.org/main/trunk@8409 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/RecentContacts/src/RecentContacts.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/RecentContacts/src/RecentContacts.cpp b/plugins/RecentContacts/src/RecentContacts.cpp index df99310e5c..e4966ec29c 100644 --- a/plugins/RecentContacts/src/RecentContacts.cpp +++ b/plugins/RecentContacts/src/RecentContacts.cpp @@ -493,6 +493,8 @@ static int OnPrebuildContactMenu(WPARAM hContact, LPARAM lParam) int OnModulesLoaded(WPARAM wParam, LPARAM lParam) { + HookEvent(ME_TTB_MODULELOADED, Create_TopToolbarShowList); + Create_MenuitemShowList(); IsMessageAPI = (CallService(MS_MSG_GETWINDOWAPI, 0, 0) != CALLSERVICE_NOTFOUND); LoadDBSettings(); @@ -535,7 +537,6 @@ extern "C" __declspec(dllexport) int Load(void) HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPrebuildContactMenu); - HookEvent(ME_TTB_MODULELOADED, Create_TopToolbarShowList); HookEvent(ME_MSG_WINDOWEVENT, OnMsgEvent); HookEvent(ME_DB_CONTACT_SETTINGCHANGED, OnContactSettingChanged ); HookEvent(ME_OPT_INITIALISE, onOptInitialise); -- cgit v1.2.3