summaryrefslogtreecommitdiff
path: root/protocols/Steam
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-10 22:02:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-10 22:02:52 +0300
commit210acddc8bc8d48c7a3d71c09db0eed3f5a9c2b0 (patch)
tree2a1041f133ed8884f7f979ea085482f245bd85fc /protocols/Steam
parenta5f518e4cbfd3b47c62d2ef5b524ae1252af9e35 (diff)
fixes #2438 (Jabber: списки приватности странно себя ведут) + some another DoModal() calls cleaning
Diffstat (limited to 'protocols/Steam')
-rw-r--r--protocols/Steam/src/steam_login.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp
index b0bccc5d45..37e046c262 100644
--- a/protocols/Steam/src/steam_login.cpp
+++ b/protocols/Steam/src/steam_login.cpp
@@ -119,7 +119,7 @@ void CSteamProto::OnGotCaptcha(const HttpResponse &response, void *arg)
}
CSteamCaptchaDialog captchaDialog(this, response.Content, response.Content.size());
- if (captchaDialog.DoModal() != DIALOG_RESULT_OK) {
+ if (!captchaDialog.DoModal()) {
DeleteAuthSettings();
SetStatus(ID_STATUS_OFFLINE);
return;
@@ -191,7 +191,7 @@ void CSteamProto::OnAuthorizationError(const JSONNode &root)
delSetting("TwoFactorCode");
CSteamTwoFactorDialog twoFactorDialog(this);
- if (twoFactorDialog.DoModal() != DIALOG_RESULT_OK) {
+ if (!twoFactorDialog.DoModal()) {
DeleteAuthSettings();
SetStatus(ID_STATUS_OFFLINE);
return;
@@ -223,7 +223,7 @@ void CSteamProto::OnAuthorizationError(const JSONNode &root)
return;
CSteamGuardDialog guardDialog(this, domain.c_str());
- if (guardDialog.DoModal() != DIALOG_RESULT_OK) {
+ if (!guardDialog.DoModal()) {
DeleteAuthSettings();
SetStatus(ID_STATUS_OFFLINE);
return;