small change to display peer names in transfers dialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@890 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2008-12-12 21:42:44 +00:00
parent e3514aaa3c
commit 9b92699500

View File

@ -36,6 +36,7 @@
#include <sstream> #include <sstream>
#include "rsiface/rsfiles.h" #include "rsiface/rsfiles.h"
#include "rsiface/rspeers.h"
#include <algorithm> #include <algorithm>
/* Images for context menu icons */ /* Images for context menu icons */
@ -386,7 +387,7 @@ void TransfersDialog::insertTransfers()
symbol = ""; symbol = "";
coreId = QString::fromStdString(info.hash); coreId = QString::fromStdString(info.hash);
name = QString::fromStdString(info.fname); name = QString::fromStdString(info.fname);
sources = QString::fromStdString(pit->peerId); sources = QString::fromStdString(rsPeers->getPeerName(pit->peerId));
switch(pit->status) switch(pit->status)
{ {
@ -495,7 +496,7 @@ void TransfersDialog::insertTransfers()
symbol = ""; symbol = "";
coreId = QString::fromStdString(info.hash); coreId = QString::fromStdString(info.hash);
name = QString::fromStdString(info.fname); name = QString::fromStdString(info.fname);
sources = QString::fromStdString(pit->peerId); sources = QString::fromStdString(rsPeers->getPeerName(pit->peerId));
switch(pit->status) switch(pit->status)
{ {