diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-09 22:38:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-09 22:38:16 +0300 |
commit | 1ce38489aab677d33b5f895acdea80cb8eb1a1d2 (patch) | |
tree | 6462a535a48944cae133cd22778ae06ec8f07355 /protocols/ICQ-WIM | |
parent | ba6b69b9e20dd633ba097987dd068ff040300665 (diff) |
fixes #2153 (ICQ-WIM: password got reset occasionally in options)
Diffstat (limited to 'protocols/ICQ-WIM')
-rw-r--r-- | protocols/ICQ-WIM/src/options.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/ICQ-WIM/src/options.cpp b/protocols/ICQ-WIM/src/options.cpp index 54b6e2af47..649f70efef 100644 --- a/protocols/ICQ-WIM/src/options.cpp +++ b/protocols/ICQ-WIM/src/options.cpp @@ -215,7 +215,7 @@ class CIcqOptionsDlg : public CIcqDlgBase CCtrlEdit edtUin, edtPassword; CCtrlCheck chkHideChats, chkTrayIcon, chkLaunchMailbox, chkShowErrorPopups; CCtrlButton btnCreate; - CMStringA wszOldPass; + CMStringW wszOldPass; public: CIcqOptionsDlg(CIcqProto *ppro, int iDlgID, bool bFullDlg) : @@ -239,13 +239,13 @@ public: chkTrayIcon.OnChange = Callback(this, &CIcqOptionsDlg::onChange_Tray); } - - edtPassword.SetText(Utf2T(ppro->m_szPassword)); - wszOldPass = ppro->m_szPassword; } bool OnInitDialog() override { + wszOldPass = m_proto->getMStringW("Password"); + edtPassword.SetText(wszOldPass); + onChange_Tray(0); return true; } |