Added the size of the collection to the link only for files (missing test).

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4723 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-12-10 21:59:42 +00:00
parent d07dbffa69
commit 030874ca41

View File

@ -558,7 +558,7 @@ QString RetroShareLink::toHtmlFull() const
QString RetroShareLink::toHtmlSize() const
{
QString size = QString("(%1)").arg(misc::friendlyUnit(_size));
if (RsCollectionFile::isCollectionFile(name())) {
if (type() == TYPE_FILE && RsCollectionFile::isCollectionFile(name())) {
FileInfo finfo;
if (rsFiles->FileDetails(hash().toStdString(), RS_FILE_HINTS_EXTRA | RS_FILE_HINTS_LOCAL, finfo)) {
RsCollectionFile collection;