add implementation for priority download queue

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1432 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
alexandrut 2009-07-26 15:00:29 +00:00
parent dacdc90c4b
commit c7ecf8c46d
8 changed files with 438 additions and 5 deletions

View file

@ -765,7 +765,7 @@ void RemoteDirModel::downloadSelected(QModelIndexList list)
/* if it is a dir, copy all files included*/
else if (details.type == DIR_TYPE_DIR)
{
size_t prefixLen = details.path.rfind(details.name);
int prefixLen = details.path.rfind(details.name);
if (prefixLen < 0) continue;
downloadDirectory(details, prefixLen);
}