summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_options.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-01-19 23:12:59 +0300
committeraunsane <aunsane@gmail.com>2018-01-19 23:12:59 +0300
commitde12828fb9051fba1db1e4573cff56ee83ab6b1f (patch)
tree697ef72c4472d17d3e91622769e31833458237e8 /protocols/Steam/src/steam_options.cpp
parent014d34c71618f7df1fd5768a1dd88afa293578bb (diff)
Steam: fix annoying auth requests on every relogin
Diffstat (limited to 'protocols/Steam/src/steam_options.cpp')
-rw-r--r--protocols/Steam/src/steam_options.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/Steam/src/steam_options.cpp b/protocols/Steam/src/steam_options.cpp
index e87775e68d..405b15e787 100644
--- a/protocols/Steam/src/steam_options.cpp
+++ b/protocols/Steam/src/steam_options.cpp
@@ -32,19 +32,14 @@ void CSteamOptionsMain::OnApply()
}
if (m_proto->IsOnline())
- {
// may be we should show message box with warning?
m_proto->SetStatus(ID_STATUS_OFFLINE);
- }
- if (m_username.IsChanged())
- {
+ if (m_username.IsChanged()) {
m_proto->delSetting("SteamID");
m_proto->delSetting("TokenSecret");
}
if (m_password.IsChanged())
- {
m_proto->delSetting("TokenSecret");
- }
mir_free(group);
}