summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-15 10:52:46 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-15 10:52:46 +0300
commitf2e906ffcfc29367af34fcb47deb11933daa40ee (patch)
tree503122272fb60a696a7353dba71d3ecb1b6d7cff /src
parent19430e9bb2857cb136c07df0f4aed88da0ac592c (diff)
fixes #3922 (Telegram: отключить возможность изменения опции "отправить запрос авторизации")
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/addcontact.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/addcontact.cpp b/src/mir_app/src/addcontact.cpp
index a33e83d041..29bc8da968 100644
--- a/src/mir_app/src/addcontact.cpp
+++ b/src/mir_app/src/addcontact.cpp
@@ -91,10 +91,10 @@ public:
uint32_t flags = (m_szProto) ? CallProtoServiceInt(0, m_szProto, PS_GETCAPS, PFLAGNUM_4, 0) : 0;
if (flags & PF4_FORCEAUTH) // force auth requests for this protocol
- m_chkAuth.Enable(false);
+ m_chkAuth.Disable();
if (flags & PF4_NOCUSTOMAUTH)
- m_authReq.Enable(false);
+ m_authReq.Disable();
else {
m_authReq.Enable(m_chkAuth.Enabled());
m_authReq.SetText(TranslateT("Please authorize my request and add me to your contact list."));