aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorwodry <wodry@users.noreply.github.com>2018-06-24 22:09:01 +0200
committerwodry <wodry@users.noreply.github.com>2018-06-26 19:39:12 +0200
commit4132ad3bfa5b5ead3f4a592d819d0097881b4827 (patch)
tree517cf0841500b85468064e95f6174a531004dcf1 /src/qt
parent3a4549301ab2468cd9ae0865aa66819878ae409a (diff)
Show symbol for inbound/outbound in peer table
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/peertablemodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/peertablemodel.cpp b/src/qt/peertablemodel.cpp
index 7e318e3035..a1e2cb713e 100644
--- a/src/qt/peertablemodel.cpp
+++ b/src/qt/peertablemodel.cpp
@@ -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: