diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-13 08:49:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-13 08:49:45 +0000 |
commit | 9a7e2f9fd248e17ffc5c2a8d9581172507ad8803 (patch) | |
tree | fa790697697405a6dbba00e72ff3d57f4db2a01a /plugins/StatusPlugins/StartupStatus/profiles.cpp | |
parent | 8f1e41b61140fdca624f2e8b25644d730502300f (diff) |
fix for TTB button in StartupStatus options
git-svn-id: http://svn.miranda-ng.org/main/trunk@941 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/StartupStatus/profiles.cpp')
-rw-r--r-- | plugins/StatusPlugins/StartupStatus/profiles.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/profiles.cpp b/plugins/StatusPlugins/StartupStatus/profiles.cpp index bc6558461b..dbf7ebec82 100644 --- a/plugins/StatusPlugins/StartupStatus/profiles.cpp +++ b/plugins/StatusPlugins/StartupStatus/profiles.cpp @@ -37,7 +37,6 @@ static int pceCount = 0; static UINT_PTR releaseTtbTimerId = 0;
-static HANDLE hPrebuildProfilesMenu = NULL;
static HANDLE hTBModuleLoadedHook;
static HANDLE hLoadAndSetProfileService;
static HANDLE hMessageHook = NULL;
@@ -382,7 +381,7 @@ int LoadProfileModule() int InitProfileModule()
{
hTTBModuleLoadedHook = HookEvent(ME_TTB_MODULELOADED, CreateTopToolbarButtons);
- hPrebuildProfilesMenu = HookEvent( ME_CLIST_PREBUILDSTATUSMENU, CreateMainMenuItems);
+ HookEvent( ME_CLIST_PREBUILDSTATUSMENU, CreateMainMenuItems);
CreateMainMenuItems(0,0);
RegisterHotKeys();
@@ -400,12 +399,9 @@ int DeinitProfilesModule() free( pce );
}
- UnhookEvent(hPrebuildProfilesMenu);
UnregisterHotKeys();
RemoveTopToolbarButtons();
- UnhookEvent(hTTBModuleLoadedHook);
- UnhookEvent(hTBModuleLoadedHook);
+
DestroyServiceFunction(hLoadAndSetProfileService);
-
return 0;
}
|