diff options
Diffstat (limited to 'protocols/Steam/src/steam_options.cpp')
-rw-r--r-- | protocols/Steam/src/steam_options.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_options.cpp b/protocols/Steam/src/steam_options.cpp index ea55af1147..c5898bea86 100644 --- a/protocols/Steam/src/steam_options.cpp +++ b/protocols/Steam/src/steam_options.cpp @@ -25,9 +25,11 @@ void CSteamOptionsMain::OnInitDialog() void CSteamOptionsMain::OnApply()
{
- wchar_t *group = m_group.GetText();
- if (mir_wstrlen(group) > 0 && !Clist_GroupExists(group))
+ ptrW group(m_group.GetText());
+ if (mir_wstrcmp(group, m_proto->m_defaultGroup)) {
+ m_proto->m_defaultGroup = mir_wstrdup(group);
Clist_GroupCreate(0, group);
+ }
if (m_proto->IsOnline())
{
|