mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -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:
|
case NetNodeId:
|
||||||
return (qint64)rec->nodeStats.nodeid;
|
return (qint64)rec->nodeStats.nodeid;
|
||||||
case Address:
|
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:
|
case Subversion:
|
||||||
return QString::fromStdString(rec->nodeStats.cleanSubVer);
|
return QString::fromStdString(rec->nodeStats.cleanSubVer);
|
||||||
case Ping:
|
case Ping:
|
||||||
|
|
Loading…
Reference in a new issue