3f9f6c6e99
cases but this makes search work much better.
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
$OpenBSD: patch-src_SearchDlg_cpp,v 1.1 2005/10/07 16:20:34 fgsch Exp $
|
|
--- src/SearchDlg.cpp.orig Fri Apr 1 21:05:18 2005
|
|
+++ src/SearchDlg.cpp Sat Sep 24 20:23:18 2005
|
|
@@ -392,7 +392,7 @@ void CSearchDlg::StartNewSearch()
|
|
return;
|
|
}
|
|
|
|
- wxString typeText(wxT("Any")), extension;
|
|
+ wxString typeText(wxEmptyString), extension;
|
|
uint32 min = 0, max = 0, availability = 0;
|
|
|
|
if (CastChild(ID_EXTENDEDSEARCHCHECK, wxCheckBox)->GetValue()) {
|
|
@@ -418,28 +418,28 @@ void CSearchDlg::StartNewSearch()
|
|
|
|
switch ( CastChild( IDC_TypeSearch, wxChoice )->GetSelection() ) {
|
|
case 0:
|
|
- typeText = wxT("Any");
|
|
+ typeText = wxEmptyString;
|
|
break;
|
|
case 1:
|
|
- typeText = wxT("Archives");
|
|
+ typeText = ED2KFTSTR_ARCHIVE;
|
|
break;
|
|
case 2:
|
|
- typeText = wxT("Audio");
|
|
+ typeText = ED2KFTSTR_AUDIO;
|
|
break;
|
|
case 3:
|
|
- typeText = wxT("CD-Images");
|
|
+ typeText = ED2KFTSTR_CDIMAGE;
|
|
break;
|
|
case 4:
|
|
- typeText = wxT("Pictures");
|
|
+ typeText = ED2KFTSTR_IMAGE;
|
|
break;
|
|
case 5:
|
|
- typeText = wxT("Programs");
|
|
+ typeText = ED2KFTSTR_PROGRAM;
|
|
break;
|
|
case 6:
|
|
- typeText = wxT("Texts");
|
|
+ typeText = ED2KFTSTR_DOCUMENT;
|
|
break;
|
|
case 7:
|
|
- typeText = wxT("Videos");
|
|
+ typeText = ED2KFTSTR_VIDEO;
|
|
break;
|
|
default:
|
|
AddDebugLogLineM( true, logGeneral,
|