mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 04:12:36 -03:00
Show symbol for inbound/outbound in peer table
This commit is contained in:
parent
3a4549301a
commit
4132ad3bfa
1 changed files with 2 additions and 1 deletions
|
@ -162,7 +162,8 @@ QVariant PeerTableModel::data(const QModelIndex &index, int role) const
|
|||
case NetNodeId:
|
||||
return (qint64)rec->nodeStats.nodeid;
|
||||
case Address:
|
||||
return QString::fromStdString(rec->nodeStats.addrName);
|
||||
// prepend to peer address down-arrow symbol for inbound connection and up-arrow for outbound connection
|
||||
return QString(rec->nodeStats.fInbound ? "↓ " : "↑ ") + QString::fromStdString(rec->nodeStats.addrName);
|
||||
case Subversion:
|
||||
return QString::fromStdString(rec->nodeStats.cleanSubVer);
|
||||
case Ping:
|
||||
|
|
Loading…
Reference in a new issue