Skip to content

Commit 10ffca7

Browse files
committed
Merge #13537: GUI: Peer table: Visualize inbound/outbound state for every row
4132ad3 Show symbol for inbound/outbound in peer table (wodry) Pull request description: Fixes #13483 The address in the network peer table is prefixed with an up-arrow symbolizing an outbound connection, or an down-array symbolizing an inbound connection. See screenshot. The user has an easy visual confirmation about the connection direction state. I really like it :) Impact to columns sorting is grouping by inbound/outbound first, which in my opinion is an advantage, too. ![bildschirmfoto](https://user-images.githubusercontent.com/8447873/41862752-13803eb2-78a5-11e8-9126-a52385f5ec19.png) Tree-SHA512: d355f679d34c3006743c06750be5f36a083c1a8376da8f5f35045fcd9df964153409946fdde5007734f23bd692c91355962dc42df31122cdcf88e4affce8bc0e
2 parents a6ed99a + 4132ad3 commit 10ffca7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qt/peertablemodel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ QVariant PeerTableModel::data(const QModelIndex &index, int role) const
160160
case NetNodeId:
161161
return (qint64)rec->nodeStats.nodeid;
162162
case Address:
163-
return QString::fromStdString(rec->nodeStats.addrName);
163+
// prepend to peer address down-arrow symbol for inbound connection and up-arrow for outbound connection
164+
return QString(rec->nodeStats.fInbound ? "" : "") + QString::fromStdString(rec->nodeStats.addrName);
164165
case Subversion:
165166
return QString::fromStdString(rec->nodeStats.cleanSubVer);
166167
case Ping:

0 commit comments

Comments
 (0)