corrected bug in search: files with size > 2Gb would not be added to transfers

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2819 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-04-30 22:17:14 +00:00
parent 6fee3eeeb7
commit fdedc400dc

View File

@ -289,12 +289,12 @@ void SearchDialog::download()
if(!rsFiles -> FileRequest((item->text(SR_NAME_COL)).toStdString(), if(!rsFiles -> FileRequest((item->text(SR_NAME_COL)).toStdString(),
(item->text(SR_HASH_COL)).toStdString(), (item->text(SR_HASH_COL)).toStdString(),
(item->text(SR_REALSIZE_COL)).toInt(), (item->text(SR_REALSIZE_COL)).toULongLong(),
"", RS_FILE_HINTS_NETWORK_WIDE, srcIds)) "", RS_FILE_HINTS_NETWORK_WIDE, srcIds))
attemptDownloadLocal = true ; attemptDownloadLocal = true ;
else else
{ {
std::cout << "isuing file request from search dialog: -" << (item->text(SR_NAME_COL)).toStdString() << "-" << (item->text(SR_HASH_COL)).toStdString() << "-" << (item->text(SR_REALSIZE_COL)).toInt() << "-ids=" ; std::cout << "isuing file request from search dialog: -" << (item->text(SR_NAME_COL)).toStdString() << "-" << (item->text(SR_HASH_COL)).toStdString() << "-" << (item->text(SR_REALSIZE_COL)).toULongLong() << "-ids=" ;
for(std::list<std::string>::const_iterator it(srcIds.begin());it!=srcIds.end();++it) for(std::list<std::string>::const_iterator it(srcIds.begin());it!=srcIds.end();++it)
std::cout << *it << "-" << std::endl ; std::cout << *it << "-" << std::endl ;
} }
@ -320,14 +320,14 @@ void SearchDialog::downloadDirectory(const QTreeWidgetItem *item, const QString
rsFiles->FileRequest(item->text(SR_NAME_COL).toStdString(), rsFiles->FileRequest(item->text(SR_NAME_COL).toStdString(),
item->text(SR_HASH_COL).toStdString(), item->text(SR_HASH_COL).toStdString(),
item->text(SR_REALSIZE_COL).toInt(), item->text(SR_REALSIZE_COL).toULongLong(),
cleanPath.toStdString(),RS_FILE_HINTS_NETWORK_WIDE, srcIds); cleanPath.toStdString(),RS_FILE_HINTS_NETWORK_WIDE, srcIds);
std::cout << "SearchDialog::downloadDirectory(): "\ std::cout << "SearchDialog::downloadDirectory(): "\
"issuing file request from search dialog: -" "issuing file request from search dialog: -"
<< (item->text(SR_NAME_COL)).toStdString() << (item->text(SR_NAME_COL)).toStdString()
<< "-" << (item->text(SR_HASH_COL)).toStdString() << "-" << (item->text(SR_HASH_COL)).toStdString()
<< "-" << (item->text(SR_REALSIZE_COL)).toInt() << "-" << (item->text(SR_REALSIZE_COL)).toULongLong()
<< "-ids=" ; << "-ids=" ;
for(std::list<std::string>::const_iterator it(srcIds.begin()); for(std::list<std::string>::const_iterator it(srcIds.begin());
it!=srcIds.end();++it) it!=srcIds.end();++it)