From fdedc400dc510c36c4dbd5ca99dd351cdb15d6e9 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 30 Apr 2010 22:17:14 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/SearchDialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/SearchDialog.cpp b/retroshare-gui/src/gui/SearchDialog.cpp index e45bd96ae..59fe02a84 100644 --- a/retroshare-gui/src/gui/SearchDialog.cpp +++ b/retroshare-gui/src/gui/SearchDialog.cpp @@ -289,12 +289,12 @@ void SearchDialog::download() if(!rsFiles -> FileRequest((item->text(SR_NAME_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)) attemptDownloadLocal = true ; 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::const_iterator it(srcIds.begin());it!=srcIds.end();++it) 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(), 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); std::cout << "SearchDialog::downloadDirectory(): "\ "issuing file request from search dialog: -" << (item->text(SR_NAME_COL)).toStdString() << "-" << (item->text(SR_HASH_COL)).toStdString() - << "-" << (item->text(SR_REALSIZE_COL)).toInt() + << "-" << (item->text(SR_REALSIZE_COL)).toULongLong() << "-ids=" ; for(std::list::const_iterator it(srcIds.begin()); it!=srcIds.end();++it)