From 1d68b4559ad80b05202814ad0b505ef02425b328 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 13 Apr 2025 12:32:23 +0300 Subject: =?UTF-8?q?fixes=20#4944=20(Teams:=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BF=D0=BE=D0=B4=D1=81=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D0=BA=D1=83=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D1=8B=D0=BC=20=D0=B2=D1=85=D0=BE=D0=B4=D0=BE?= =?UTF-8?q?=D0=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Teams/src/teams_options.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'protocols/Teams/src/teams_options.cpp') diff --git a/protocols/Teams/src/teams_options.cpp b/protocols/Teams/src/teams_options.cpp index 4405939c47..0f50948446 100644 --- a/protocols/Teams/src/teams_options.cpp +++ b/protocols/Teams/src/teams_options.cpp @@ -46,7 +46,11 @@ public: if (m_proto->getMStringA(DBKEY_RTOKEN).IsEmpty()) btnLogout.Disable(); - m_login.SetTextA(ptrA(m_proto->getStringA(DBKEY_ID))); + CMStringA szLogin(m_proto->getMStringA(DBKEY_ID)); + if (szLogin.IsEmpty()) + m_login.SetText(TranslateT("")); + else + m_login.SetTextA(szLogin); m_group.SendMsg(EM_LIMITTEXT, 64, 0); return true; } -- cgit v1.2.3