diff options
author | ElzorFox <elzorfox@ya.ru> | 2021-03-25 11:17:57 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2021-03-25 11:17:57 +0500 |
commit | f1fa87fe7200c11fefbab51a6aa373c0b0aa36f5 (patch) | |
tree | b4e473c58bd3e34003b8c5b1370358bfd5e26a01 /protocols | |
parent | b682217c769d54b073b5052c9e458dbd81722274 (diff) |
VKontakte: cosmetic fix for confirmation code window
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 9bd4ed0955..d08d6afef4 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -452,8 +452,9 @@ bool CVkProto::AutoFillForm(char *pBody, CMStringA &szAction, CMStringA& szResul CMStringW CVkProto::RunConfirmationCode(LPCWSTR pwszTitle)
{
ENTER_STRING pForm = {};
- pForm.type = ESF_COMBO;
- pForm.caption = IsEmpty(pwszTitle) ? TranslateT("Enter confirmation code") : pwszTitle;
+ pForm.type = 0;
+ CMStringW wszTitle(FORMAT, L"%s: %s", ptrW(mir_a2u(m_szModuleName)).get(), IsEmpty(pwszTitle) ? TranslateT("Enter confirmation code") : pwszTitle);
+ pForm.caption = wszTitle;
pForm.szModuleName = m_szModuleName;
pForm.szDataPrefix = "confirmcode_";
return (!EnterString(&pForm)) ? CMStringW() : CMStringW(ptrW(pForm.ptszResult));
@@ -462,7 +463,7 @@ CMStringW CVkProto::RunConfirmationCode(LPCWSTR pwszTitle) CMStringW CVkProto::RunRenameNick(LPCWSTR pwszOldName)
{
ENTER_STRING pForm = {};
- pForm.type = ESF_COMBO;
+ pForm.type = 0;
pForm.caption = TranslateT("Enter new nickname");
pForm.ptszInitVal = pwszOldName;
pForm.szModuleName = m_szModuleName;
|