summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/changeinfo
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-02-14 08:35:12 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-02-14 08:35:12 +0000
commit262a20f04f06f4e51eca2afeff172b1f75138d88 (patch)
tree49b4196e332c98cd07647b364c0a29d33598db86 /protocols/IcqOscarJ/src/changeinfo
parent0933fa74c0cd48615d4d4865f14308006e64b0dc (diff)
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
Diffstat (limited to 'protocols/IcqOscarJ/src/changeinfo')
-rw-r--r--protocols/IcqOscarJ/src/changeinfo/upload.cpp7
1 files changed, 6 insertions, 1 deletions
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};