summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/DbEditorPP/src/main.cpp')
-rw-r--r--plugins/DbEditorPP/src/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp
index dcb399e72f..cc855a2cfc 100644
--- a/plugins/DbEditorPP/src/main.cpp
+++ b/plugins/DbEditorPP/src/main.cpp
@@ -165,12 +165,10 @@ int PreShutdown(WPARAM, LPARAM)
INT_PTR ServiceMode(WPARAM, LPARAM)
{
- if (!g_bServiceMode) {
- g_bServiceMode = true;
+ g_bServiceMode = true;
- IcoLibRegister();
- HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DBSettingChanged);
- }
+ IcoLibRegister();
+ HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DBSettingChanged);
return SERVICE_ONLYDB; // load database and then call us
}