aboutsummaryrefslogtreecommitdiff
path: root/src/qt/peertablesortproxy.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-04-23 14:57:05 +0200
committerJarol Rodriguez <jarolrod@tutanota.com>2021-05-26 17:35:11 -0400
commit6971e790c32253ecddb6108e796afd3892ced7fe (patch)
tree348a43bffd422522f350b616ad91770a007e1404 /src/qt/peertablesortproxy.cpp
parent5c041cb348e667672c8b5ed504dba05adf60783b (diff)
gui: add Direction column to peers tab
Co-authored-by: Jarol Rodriguez <jarolrod@tutanota.com>
Diffstat (limited to 'src/qt/peertablesortproxy.cpp')
-rw-r--r--src/qt/peertablesortproxy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/peertablesortproxy.cpp b/src/qt/peertablesortproxy.cpp
index 78932da8d4..f92eef48f1 100644
--- a/src/qt/peertablesortproxy.cpp
+++ b/src/qt/peertablesortproxy.cpp
@@ -26,6 +26,8 @@ bool PeerTableSortProxy::lessThan(const QModelIndex& left_index, const QModelInd
return left_stats.nodeid < right_stats.nodeid;
case PeerTableModel::Address:
return left_stats.addrName.compare(right_stats.addrName) < 0;
+ case PeerTableModel::Direction:
+ return left_stats.fInbound > right_stats.fInbound; // default sort Inbound, then Outbound
case PeerTableModel::ConnectionType:
return left_stats.m_conn_type < right_stats.m_conn_type;
case PeerTableModel::Network: