fixed to display filesize formated in Messages

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2613 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-03-23 13:27:36 +00:00
parent 04607c1205
commit 8a5863af1d

View File

@ -867,7 +867,7 @@ void MessagesDialog::insertMsgTxtAndFiles(QModelIndex Index)
item -> setText(0, QString::fromStdString(it->fname));
//std::cerr << "Msg FileItem(" << it->fname.length() << ") :" << it->fname << std::endl;
item -> setText(1, QString::number(it->size)); /* (1) Size */
item -> setText(1, misc::friendlyUnit(it->size)); /* (1) Size */
item -> setText(2, QString::number(0)); /* (2) Rank */ // what is this ???
item -> setText(3, QString::fromStdString(it->hash));