corrected small bug in max search determination

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2679 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-04-05 12:48:29 +00:00
parent 1901ac10ef
commit e527486854

View File

@ -824,9 +824,6 @@ void SearchDialog::insertFile(const std::string& txt,qulonglong searchId, const
if(nb_results[searchId] >= ui._max_results_SB->value()) if(nb_results[searchId] >= ui._max_results_SB->value())
return ; return ;
else
++nb_results[searchId] ;
// 1 - look in result window whether the file already exists. // 1 - look in result window whether the file already exists.
// //
@ -957,6 +954,8 @@ void SearchDialog::insertFile(const std::string& txt,qulonglong searchId, const
if(!found) if(!found)
{ {
++nb_results[searchId] ;
/* translate search results */ /* translate search results */
QTreeWidgetItem *item = new QTreeWidgetItem(); QTreeWidgetItem *item = new QTreeWidgetItem();