From a3e8bea22eeac2ceb3e0475de7cb055e23ef8e77 Mon Sep 17 00:00:00 2001 From: defnax Date: Thu, 25 Mar 2010 12:34:44 +0000 Subject: [PATCH] Fixed to display Dir Count in search, fixed by Jimigor git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2629 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/SearchDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/SearchDialog.cpp b/retroshare-gui/src/gui/SearchDialog.cpp index b37a8f80a..025e8a55e 100644 --- a/retroshare-gui/src/gui/SearchDialog.cpp +++ b/retroshare-gui/src/gui/SearchDialog.cpp @@ -700,7 +700,7 @@ void SearchDialog::insertDirectory(const std::string &txt, qulonglong searchId, child->setIcon(SR_NAME_COL, QIcon(IMAGE_DIRECTORY)); child->setText(SR_NAME_COL, QString::fromUtf8(dir.name.c_str())); child->setText(SR_HASH_COL, QString::fromStdString(dir.hash)); - child->setText(SR_SIZE_COL, misc::friendlyUnit(dir.count)); + child->setText(SR_SIZE_COL, misc::toQString(dir.count)); child->setText(SR_AGE_COL, misc::userFriendlyDuration(dir.age)); child->setText(SR_REALSIZE_COL, QString::number(dir.count)); child->setTextAlignment( SR_SIZE_COL, Qt::AlignRight ); @@ -763,7 +763,7 @@ void SearchDialog::insertDirectory(const std::string &txt, qulonglong searchId, child->setIcon(SR_NAME_COL, QIcon(IMAGE_DIRECTORY)); child->setText(SR_NAME_COL, QString::fromUtf8(dir.name.c_str())); child->setText(SR_HASH_COL, QString::fromStdString(dir.hash)); - child->setText(SR_SIZE_COL, misc::friendlyUnit(dir.count)); + child->setText(SR_SIZE_COL, misc::toQString(dir.count)); child->setText(SR_AGE_COL, misc::userFriendlyDuration(dir.age)); child->setText(SR_REALSIZE_COL, QString::number(dir.count)); child->setTextAlignment( SR_SIZE_COL, Qt::AlignRight );