summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-12-10 19:05:17 +0000
committerRobert Pösel <robyer@seznam.cz>2013-12-10 19:05:17 +0000
commitff2a944c8d0d09834cd29f1d56fad5540db3ef02 (patch)
tree136c345c4cf463e01f630856be099829cd06006c /plugins
parentac74105b7a7681dcd104768041a92037d7c112d7 (diff)
NewEventNotify: fixed duplicated popups menu
git-svn-id: http://svn.miranda-ng.org/main/trunk@7120 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewEventNotify/src/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp
index 8323794ccf..600335ac23 100644
--- a/plugins/NewEventNotify/src/main.cpp
+++ b/plugins/NewEventNotify/src/main.cpp
@@ -124,7 +124,10 @@ int HookedInit(WPARAM, LPARAM)
hHookedNewEvent = HookEvent(ME_DB_EVENT_ADDED, HookedNewEvent);
// Plugin sweeper support
if (ServiceExists("PluginSweeper/Add"))
- CallService("PluginSweeper/Add", (WPARAM)MODULE, (LPARAM)MODULE);
+ CallService("PluginSweeper/Add", (WPARAM)MODULE, (LPARAM)MODULE);
+
+ if (pluginOptions.bMenuitem)
+ MenuitemInit(!pluginOptions.bDisable);
g_IsSrmmWindowAPI = ServiceExists(MS_MSG_GETWINDOWDATA) != 0;
return 0;
@@ -155,9 +158,6 @@ extern "C" __declspec(dllexport) int Load(void)
OptionsInit(&pluginOptions);
pluginOptions.hInst = hInst;
- if (pluginOptions.bMenuitem)
- MenuitemInit(!pluginOptions.bDisable);
-
return 0;
}