diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-09-28 09:27:53 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-09-28 09:27:53 +0000 |
commit | 6c579fee385e85c9e62d818c0a019b30a57043c0 (patch) | |
tree | 005601af43292db2e77dd8013c2f4c8cfd8d75cc /src/modules | |
parent | f3490d233c4a64620009db9a64268b7a49452592 (diff) |
fixed Add to list button activation
git-svn-id: http://svn.miranda-ng.org/main/trunk@10618 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/findadd/findadd.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/findadd/findadd.cpp b/src/modules/findadd/findadd.cpp index 61ccfab2e3..99fda257b2 100644 --- a/src/modules/findadd/findadd.cpp +++ b/src/modules/findadd/findadd.cpp @@ -629,8 +629,13 @@ static INT_PTR CALLBACK DlgProcFindAdd(HWND hwndDlg, UINT msg, WPARAM wParam, LP case IDC_BYPROTOID:
case IDC_BYEMAIL:
case IDC_BYNAME:
- EnableWindow(GetDlgItem(hwndDlg, IDC_ADD), ListView_GetSelectedCount(hwndList) > 0);
- HideAdvancedSearchDlg(hwndDlg, dat);
+ {
+ int count = ListView_GetSelectedCount(hwndList);
+ if (dat->notSearchedYet)
+ count = 0;
+ EnableWindow(GetDlgItem(hwndDlg, IDC_ADD), count);
+ HideAdvancedSearchDlg(hwndDlg, dat);
+ }
break;
case IDC_PROTOID:
|