summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-05 18:53:26 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-05 18:53:26 +0000
commit4762fe3d72f220c5c59845f7cfd4f1021a2ab915 (patch)
treeaf9fc043c48a73139dad2ef3aaa6a80eb136e1bd /protocols/Tox
parenta9fbb37488cf2f7d8198277aba80c55517cad092 (diff)
Tox: fixed custom event icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@13451 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/tox_accounts.cpp2
-rw-r--r--protocols/Tox/src/tox_events.cpp3
-rw-r--r--protocols/Tox/src/tox_proto.h2
3 files changed, 4 insertions, 3 deletions
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);