From 262a20f04f06f4e51eca2afeff172b1f75138d88 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 14 Feb 2013 08:35:12 +0000 Subject: Fixed missed update of a new password in "change user info dialog" in case when dialog was not re-opened before second password change. (patch by ryo-oh-ki) git-svn-id: http://svn.miranda-ng.org/main/trunk@3594 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/changeinfo/upload.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/IcqOscarJ') diff --git a/protocols/IcqOscarJ/src/changeinfo/upload.cpp b/protocols/IcqOscarJ/src/changeinfo/upload.cpp index a468dc9f2b..165d65fa22 100644 --- a/protocols/IcqOscarJ/src/changeinfo/upload.cpp +++ b/protocols/IcqOscarJ/src/changeinfo/upload.cpp @@ -44,7 +44,7 @@ int CIcqProto::StringToListItemId(const char *szSetting,int def) if (!szValue) return def; - for (i=0; list[i].text; i++) + for (i=0; list[i].text; i++) if (!strcmpnull(list[i].text, szValue)) break; @@ -71,6 +71,11 @@ int ChangeInfoData::UploadSettings(void) { if (strlennull(Password) > 0 && strcmpnull(Password, tmp)) { + // update password in user info dialog (still open) + strcpy(Password, tmp); + // update password in protocol + strcpy(ppro->m_szPassword, tmp); + hUpload[1] = (HANDLE)ppro->icq_changeUserPasswordServ(tmp); char szPwd[PASSWORDMAXLEN] = {0}; -- cgit v1.2.3