diff options
author | George Hazan <george.hazan@gmail.com> | 2012-12-23 21:26:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-12-23 21:26:45 +0000 |
commit | f8e1220c22695d224c3ff8a600de99da342d4f1b (patch) | |
tree | e6f44fb9c283d3826be6804817e97adf0fbe1ff6 /protocols/JabberG/src/jabber_thread.cpp | |
parent | a09844937f3bb1c82327b3f77268ce456954634d (diff) |
fix for the password saving in jabber.rc
fixes: #71
git-svn-id: http://svn.miranda-ng.org/main/trunk@2822 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_thread.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 213de6f0a6..e948ba1572 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -86,11 +86,22 @@ static INT_PTR CALLBACK JabberPasswordDlgProc(HWND hwndDlg, UINT msg, WPARAM wPa case WM_COMMAND:
switch (LOWORD(wParam)) {
+ case IDC_SAVE_PERM:
+ EnableWindow(GetDlgItem(hwndDlg,IDC_SAVEPASSWORD),!IsDlgButtonChecked(hwndDlg, IDC_SAVE_PERM));
+ break;
case IDOK:
param->saveOnlinePassword = IsDlgButtonChecked(hwndDlg, IDC_SAVEPASSWORD);
param->pro->JSetByte(NULL, "SaveSessionPassword", param->saveOnlinePassword);
GetDlgItemText(hwndDlg, IDC_PASSWORD, param->onlinePassword, SIZEOF(param->onlinePassword));
+ {
+ BOOL savePassword = IsDlgButtonChecked(hwndDlg, IDC_SAVE_PERM);
+ param->pro->JSetByte(NULL, "SavePassword", savePassword);
+ if (savePassword) {
+ param->pro->JSetStringCrypt(NULL,"LoginPassword",param->onlinePassword);
+ param->saveOnlinePassword = TRUE;
+ }
+ }
// Fall through
case IDCANCEL:
param->dlgResult = LOWORD(wParam);
|