mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-14 17:07:17 -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 *outgoing()
|
||||||
{
|
{
|
||||||
RsRawItem *item = _item_queue.front() ;
|
if(_item_queue.empty())
|
||||||
|
return NULL ;
|
||||||
|
|
||||||
|
RsRawItem *item = _item_queue.front() ;
|
||||||
_item_queue.pop_front() ;
|
_item_queue.pop_front() ;
|
||||||
return item ;
|
return item ;
|
||||||
}
|
}
|
||||||
|
@ -220,13 +220,7 @@ QString TurtleRouterStatistics::getPeerName(const RsPeerId& peer_id)
|
|||||||
if( it != names.end())
|
if( it != names.end())
|
||||||
return it->second ;
|
return it->second ;
|
||||||
else
|
else
|
||||||
{
|
return (names[peer_id] = QString::fromStdString(peer_id.toStdString())) ;
|
||||||
RsPeerDetails detail ;
|
|
||||||
if(!rsPeers->getPeerDetails(peer_id,detail))
|
|
||||||
return tr("Unknown Peer");
|
|
||||||
|
|
||||||
return (names[peer_id] = QString::fromUtf8(detail.name.c_str())) ;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TurtleRouterStatisticsWidget::TurtleRouterStatisticsWidget(QWidget *parent)
|
TurtleRouterStatisticsWidget::TurtleRouterStatisticsWidget(QWidget *parent)
|
||||||
|
Loading…
Reference in New Issue
Block a user