mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
bug fixing in Network Simulator
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7225 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
afcded6c3b
commit
47c9971b5c
@ -129,7 +129,10 @@ class FakePublisher: public pqiPublisher
|
||||
|
||||
RsRawItem *outgoing()
|
||||
{
|
||||
RsRawItem *item = _item_queue.front() ;
|
||||
if(_item_queue.empty())
|
||||
return NULL ;
|
||||
|
||||
RsRawItem *item = _item_queue.front() ;
|
||||
_item_queue.pop_front() ;
|
||||
return item ;
|
||||
}
|
||||
|
@ -220,13 +220,7 @@ QString TurtleRouterStatistics::getPeerName(const RsPeerId& peer_id)
|
||||
if( it != names.end())
|
||||
return it->second ;
|
||||
else
|
||||
{
|
||||
RsPeerDetails detail ;
|
||||
if(!rsPeers->getPeerDetails(peer_id,detail))
|
||||
return tr("Unknown Peer");
|
||||
|
||||
return (names[peer_id] = QString::fromUtf8(detail.name.c_str())) ;
|
||||
}
|
||||
return (names[peer_id] = QString::fromStdString(peer_id.toStdString())) ;
|
||||
}
|
||||
|
||||
TurtleRouterStatisticsWidget::TurtleRouterStatisticsWidget(QWidget *parent)
|
||||
|
Loading…
Reference in New Issue
Block a user