summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-19 22:14:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-19 22:14:44 +0300
commit6ba39da289306e1a1db3ee122add5f2dbc4aaee4 (patch)
treeccdd964a836a4b4875f14076ae5bf496776dfd9c /src/mir_app
parent8fb695ee9ab7987b58fb3f5ead668d21b56da230 (diff)
fixes #2693 (import in the service mode breaks the groups' order)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/miranda.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mir_app/src/miranda.cpp b/src/mir_app/src/miranda.cpp
index 8bd2e4ee28..38909e4202 100644
--- a/src/mir_app/src/miranda.cpp
+++ b/src/mir_app/src/miranda.cpp
@@ -352,8 +352,11 @@ int WINAPI mir_main(LPTSTR cmdLine)
}
else {
InitPathVar();
- NotifyEventHooks(hModulesLoadedEvent, 0, 0);
- g_bModulesLoadedFired = true;
+
+ if (plugin_service == nullptr) {
+ NotifyEventHooks(hModulesLoadedEvent, 0, 0);
+ g_bModulesLoadedFired = true;
+ }
// ensure that the kernel hooks the SystemShutdownProc() after all plugins
HookEvent(ME_SYSTEM_SHUTDOWN, SystemShutdownProc);