From c85590b8045696a04392129899a089baca1ce8a0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Jan 2024 12:57:37 +0300 Subject: =?UTF-8?q?fixes=20#4123=20(Discord:=20=D0=BF=D1=80=D0=B5=D0=BA?= =?UTF-8?q?=D1=80=D0=B0=D1=89=D0=B0=D1=82=D1=8C=20=D0=BF=D0=BE=D0=B4=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=20=D0=BE=D1=82=D0=BA=D0=B0=D0=B7=D0=B5=20=D0=BE=D1=82=20=D0=B2?= =?UTF-8?q?=D0=B2=D0=BE=D0=B4=D0=B0=20=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Discord/src/mfa.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/Discord/src/mfa.cpp') diff --git a/protocols/Discord/src/mfa.cpp b/protocols/Discord/src/mfa.cpp index 292826d3e1..9bdc1539f4 100644 --- a/protocols/Discord/src/mfa.cpp +++ b/protocols/Discord/src/mfa.cpp @@ -36,6 +36,8 @@ public: btnCancel(this, IDCANCEL), btnAnother(this, IDC_ANOTHER) { + btnCancel.OnClick = Callback(this, &CMfaDialog::onClick_Cancel); + m_bHasSms = pRoot["sms"].as_bool(); m_bHasTotp = pRoot["totp"].as_bool(); m_szTicket = pRoot["ticket"].as_mstring(); @@ -68,7 +70,7 @@ public: return false; } - void onClick_Cancel() + void onClick_Cancel(CCtrlButton *) { m_proto->ConnectionFailed(LOGINERR_WRONGPASSWORD); } -- cgit v1.2.3