diff options
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);
|