diff options
Diffstat (limited to 'protocols/Tox/src/tox_profile.cpp')
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index afbf5f577e..2a22f24f90 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -154,11 +154,12 @@ CToxPasswordEditor::CToxPasswordEditor(CToxProto *proto) : void CToxPasswordEditor::OnOk(CCtrlButton*)
{
+ ptrT tszPassword(password.GetText());
if (savePermanently.Enabled())
- m_proto->setTString("Password", password.GetText());
+ m_proto->setTString("Password", tszPassword);
if (m_proto->password != NULL)
mir_free(m_proto->password);
- m_proto->password = mir_utf8encodeW(password.GetText());
+ m_proto->password = mir_utf8encodeW(tszPassword);
EndDialog(m_hwnd, 1);
}
|