mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
6fee3eeeb7
commit
fdedc400dc
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user