From 8a5863af1d3c323023f3f4b55fe6092dd18200b6 Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 23 Mar 2010 13:27:36 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/MessagesDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/MessagesDialog.cpp b/retroshare-gui/src/gui/MessagesDialog.cpp index 2040033df..d4cea36b0 100644 --- a/retroshare-gui/src/gui/MessagesDialog.cpp +++ b/retroshare-gui/src/gui/MessagesDialog.cpp @@ -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));