summaryrefslogtreecommitdiff
path: root/protocols/Steam/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-23 13:30:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-23 13:30:42 +0300
commit7ec9441d255b4361be26705c65eed5819cd0208f (patch)
treea9dcfa765475648a6c5d7dfaf92b901f916b7c21 /protocols/Steam/src
parent93249b0dec5639fa1c438da3e3289b65bf04c1de (diff)
Clist_GroupCreate() to be called inside OnModulesLoaded, not inside the protocol's constructor
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r--protocols/Steam/src/steam_events.cpp2
-rw-r--r--protocols/Steam/src/steam_proto.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp
index 9c37a9d74e..23a418f9e5 100644
--- a/protocols/Steam/src/steam_events.cpp
+++ b/protocols/Steam/src/steam_events.cpp
@@ -2,6 +2,8 @@
int CSteamProto::OnModulesLoaded(WPARAM, LPARAM)
{
+ Clist_GroupCreate(0, m_defaultGroup);
+
HookProtoEvent(ME_OPT_INITIALISE, &CSteamProto::OnOptionsInit);
HookProtoEvent(ME_IDLE_CHANGED, &CSteamProto::OnIdleChanged);
HookProtoEvent(ME_MSG_PRECREATEEVENT, &CSteamProto::OnPreCreateMessage);
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index 2a3b1dd732..8a92e60534 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -16,7 +16,6 @@ CSteamProto::CSteamProto(const char* protoName, const wchar_t* userName)
m_defaultGroup = getWStringA("DefaultGroup");
if (m_defaultGroup == nullptr)
m_defaultGroup = mir_wstrdup(L"Steam");
- Clist_GroupCreate(0, m_defaultGroup);
// icons
wchar_t filePath[MAX_PATH];