mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -04:00
include own files check option on search
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2391 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f3e507d59a
commit
103e4517e9
2 changed files with 21 additions and 23 deletions
|
@ -565,10 +565,12 @@ void SearchDialog::searchKeywords()
|
|||
|
||||
/* call to core */
|
||||
std::list<DirDetails> initialResults;
|
||||
std::list<DirDetails> * finalResults = 0;
|
||||
std::list<DirDetails> * finalResults = 0;
|
||||
|
||||
//rsFiles -> SearchKeywords(words, initialResults,DIR_FLAGS_LOCAL | DIR_FLAGS_REMOTE | DIR_FLAGS_NETWORK_WIDE | DIR_FLAGS_BROWSABLE);
|
||||
rsFiles -> SearchKeywords(words, initialResults,DIR_FLAGS_REMOTE | DIR_FLAGS_NETWORK_WIDE | DIR_FLAGS_BROWSABLE);
|
||||
uint32_t flags = DIR_FLAGS_REMOTE | DIR_FLAGS_NETWORK_WIDE | DIR_FLAGS_BROWSABLE;
|
||||
if (ui.checkBox->isChecked())
|
||||
flags |= DIR_FLAGS_LOCAL;
|
||||
rsFiles -> SearchKeywords(words, initialResults,flags);
|
||||
/* which extensions do we use? */
|
||||
QString qExt, qName;
|
||||
int extIndex;
|
||||
|
@ -1090,7 +1092,8 @@ void SearchDialog::resultsToTree(std::string txt,qulonglong searchId, const std:
|
|||
|
||||
void SearchDialog::selectSearchResults(int index)
|
||||
{
|
||||
index = (index == -1)?ui.FileTypeComboBox->currentIndex():index;
|
||||
int cindex = ui.FileTypeComboBox->currentIndex();
|
||||
index = (index == -1) ? (cindex == -1 ? 0 : cindex):index;
|
||||
QString alltypes = FileTypeExtensionMap->value(index);
|
||||
QStringList types = alltypes.split(" ");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue