From 4762fe3d72f220c5c59845f7cfd4f1021a2ab915 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 5 May 2015 18:53:26 +0000 Subject: Tox: fixed custom event icons git-svn-id: http://svn.miranda-ng.org/main/trunk@13451 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_accounts.cpp | 2 ++ protocols/Tox/src/tox_events.cpp | 3 +-- protocols/Tox/src/tox_proto.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'protocols/Tox') diff --git a/protocols/Tox/src/tox_accounts.cpp b/protocols/Tox/src/tox_accounts.cpp index 29645bc6bf..1751d261c9 100644 --- a/protocols/Tox/src/tox_accounts.cpp +++ b/protocols/Tox/src/tox_accounts.cpp @@ -35,6 +35,8 @@ int CToxProto::OnAccountLoaded(WPARAM, LPARAM) HookProtoEvent(ME_USERINFO_INITIALISE, &CToxProto::OnUserInfoInit); HookProtoEvent(ME_MSG_PRECREATEEVENT, &CToxProto::OnPreCreateMessage); + InitCustomDbEvents(); + return 0; } diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp index cb30de873e..67b6ecfbfc 100644 --- a/protocols/Tox/src/tox_events.cpp +++ b/protocols/Tox/src/tox_events.cpp @@ -4,7 +4,6 @@ int CToxProto::OnModulesLoaded(WPARAM, LPARAM) { CToxProto::InitIcons(); CToxProto::InitMenus(); - CToxProto::InitCustomDbEvents(); hProfileFolderPath = FoldersRegisterCustomPathT("Tox", Translate("Profiles folder"), MIRANDA_USERDATAT); @@ -14,7 +13,7 @@ int CToxProto::OnModulesLoaded(WPARAM, LPARAM) void CToxProto::InitCustomDbEvents() { DBEVENTTYPEDESCR dbEventType = { sizeof(dbEventType) }; - dbEventType.module = MODULE; + dbEventType.module = m_szModuleName; dbEventType.flags = DETF_HISTORY | DETF_MSGWINDOW; dbEventType.eventType = DB_EVENT_ACTION; diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 075c4b4b26..61041a2eb4 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -64,7 +64,7 @@ public: static void UninitMenus(); // events - static void InitCustomDbEvents(); + void InitCustomDbEvents(); static int OnModulesLoaded(WPARAM, LPARAM); -- cgit v1.2.3