diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-09-22 19:38:57 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-09-22 19:38:57 +0000 |
commit | e214ccaf1647ba22768a5eeb08db038f957bb94a (patch) | |
tree | a15a3492d210f58f4318c79edaf29863a3ec7345 /src/modules | |
parent | f5a8a82ab0b5d45775c1e119a8c775c4f9a7dfac (diff) |
fixed crash when add contacts without searching
git-svn-id: http://svn.miranda-ng.org/main/trunk@10561 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/findadd/findadd.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/findadd/findadd.cpp b/src/modules/findadd/findadd.cpp index 88400312a9..61ccfab2e3 100644 --- a/src/modules/findadd/findadd.cpp +++ b/src/modules/findadd/findadd.cpp @@ -276,7 +276,7 @@ static void HideAdvancedSearchDlg(HWND hwndDlg, FindAddDlgData *dat) void EnableResultButtons(HWND hwndDlg, int enable)
{
- EnableWindow(GetDlgItem(hwndDlg, IDC_ADD), enable || IsDlgButtonChecked(hwndDlg, IDC_BYPROTOID));
+ EnableWindow(GetDlgItem(hwndDlg, IDC_ADD), enable);
EnableWindow(GetDlgItem(hwndDlg, IDC_MOREOPTIONS), enable);
}
@@ -316,6 +316,7 @@ static INT_PTR CALLBACK DlgProcFindAdd(HWND hwndDlg, UINT msg, WPARAM wParam, LP dat->iLastColumnSortIndex = 1;
dat->bSortAscending = 1;
SendDlgItemMessage(hwndDlg, IDC_MOREOPTIONS, BUTTONSETARROW, 1, 0);
+ SendDlgItemMessage(hwndDlg, IDOK, BUTTONADDTOOLTIP, (WPARAM)LPGENT("Ctrl+Search add contact"), BATF_TCHAR);
ListView_SetExtendedListViewStyle(hwndList, LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP);
{
@@ -626,10 +627,6 @@ static INT_PTR CALLBACK DlgProcFindAdd(HWND hwndDlg, UINT msg, WPARAM wParam, LP break;
case IDC_BYPROTOID:
- EnableWindow(GetDlgItem(hwndDlg, IDC_ADD), TRUE);
- HideAdvancedSearchDlg(hwndDlg, dat);
- break;
-
case IDC_BYEMAIL:
case IDC_BYNAME:
EnableWindow(GetDlgItem(hwndDlg, IDC_ADD), ListView_GetSelectedCount(hwndList) > 0);
@@ -640,7 +637,6 @@ static INT_PTR CALLBACK DlgProcFindAdd(HWND hwndDlg, UINT msg, WPARAM wParam, LP if (HIWORD(wParam) == EN_CHANGE) {
HideAdvancedSearchDlg(hwndDlg, dat);
CheckSearchTypeRadioButton(hwndDlg, IDC_BYPROTOID);
- EnableWindow(GetDlgItem(hwndDlg, IDC_ADD), TRUE);
}
break;
|