diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-09-15 09:35:48 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-09-15 09:35:48 +0000 |
commit | 8b81f3b1b4c500452db5dd329be403ca6c2cbfba (patch) | |
tree | 830252959bee58306469513468f2b499888d5d0a /protocols/MRA/src/MraSelectEMail.cpp | |
parent | 7f44824457f6a4cbb8f79122a0d26b979695665c (diff) |
-translation fixes
-fixed password saving
-code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6065 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/MraSelectEMail.cpp')
-rw-r--r-- | protocols/MRA/src/MraSelectEMail.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/protocols/MRA/src/MraSelectEMail.cpp b/protocols/MRA/src/MraSelectEMail.cpp index f05e009b70..3978c57a8b 100644 --- a/protocols/MRA/src/MraSelectEMail.cpp +++ b/protocols/MRA/src/MraSelectEMail.cpp @@ -27,7 +27,8 @@ void AddContactEMailToListParam(HANDLE hContact, BOOL bMRAOnly, LPSTR lpszModule if (bMRAOnly == FALSE || IsEMailMR(szEmail)) {
WCHAR wszBuff[MAX_EMAIL_LEN];
MultiByteToWideChar(MRA_CODE_PAGE, 0, szEmail, -1, wszBuff, SIZEOF(wszBuff));
- if (SendMessage(hWndList, LB_FINDSTRING, -1, (LPARAM)wszBuff) == LB_ERR) SendMessage(hWndList, LB_ADDSTRING, 0, (LPARAM)wszBuff);
+ if (SendMessage(hWndList, LB_FINDSTRING, -1, (LPARAM)wszBuff) == LB_ERR)
+ SendMessage(hWndList, LB_ADDSTRING, 0, (LPARAM)wszBuff);
}
}
else if (i > EMAILS_MIN_COUNT)
@@ -44,12 +45,10 @@ INT_PTR CALLBACK MraSelectEMailDlgProc(HWND hWndDlg, UINT message, WPARAM wParam TranslateDialogDefault(hWndDlg);
dat = (MraSelectEMailDlgData*)lParam;
{
- HWND hWndList;
BOOL bMRAOnly;
- LPSTR lpszProto;
SetWindowLongPtr(hWndDlg, GWLP_USERDATA, (LONG_PTR)lParam);
- hWndList = GetDlgItem(hWndDlg, IDC_LIST_EMAILS);
+ HWND hWndList = GetDlgItem(hWndDlg, IDC_LIST_EMAILS);
switch (dat->dwType) {
case MRA_SELECT_EMAIL_TYPE_SEND_POSTCARD:
@@ -64,10 +63,7 @@ INT_PTR CALLBACK MraSelectEMailDlgProc(HWND hWndDlg, UINT message, WPARAM wParam break;
}
- if (dat->hContact)
- lpszProto = GetContactProto(dat->hContact);
- else
- lpszProto = dat->ppro->m_szModuleName;
+ LPSTR lpszProto = dat->hContact ? GetContactProto(dat->hContact) : dat->ppro->m_szModuleName;
AddContactEMailToListParam(dat->hContact, bMRAOnly, lpszProto, "e-mail", hWndList);
AddContactEMailToListParam(dat->hContact, bMRAOnly, "UserInfo", "e-mail", hWndList);
|