diff options
author | randymcmillan <randy.lee.mcmillan@gmail.com> | 2022-02-10 01:45:25 -0500 |
---|---|---|
committer | randymcmillan <randy.lee.mcmillan@gmail.com> | 2022-03-16 04:54:52 -0400 |
commit | 209301a442512579d57f79c82417dc7c496248b6 (patch) | |
tree | da6d243e4d780548635b7056d302eeba56bbce06 /src/qt/peertablesortproxy.cpp | |
parent | 127de22c5fb396e1670d2a911faf7a9adc9241e2 (diff) | |
download | bitcoin-209301a442512579d57f79c82417dc7c496248b6.tar.xz |
gui: add Age column to peers tab
Co-authored-by: Jon Atack <jon@atack.com>
Diffstat (limited to 'src/qt/peertablesortproxy.cpp')
-rw-r--r-- | src/qt/peertablesortproxy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/peertablesortproxy.cpp b/src/qt/peertablesortproxy.cpp index 26fedb4127..d87f10c365 100644 --- a/src/qt/peertablesortproxy.cpp +++ b/src/qt/peertablesortproxy.cpp @@ -24,6 +24,8 @@ bool PeerTableSortProxy::lessThan(const QModelIndex& left_index, const QModelInd switch (static_cast<PeerTableModel::ColumnIndex>(left_index.column())) { case PeerTableModel::NetNodeId: return left_stats.nodeid < right_stats.nodeid; + case PeerTableModel::Age: + return left_stats.m_connected > right_stats.m_connected; case PeerTableModel::Address: return left_stats.m_addr_name.compare(right_stats.m_addr_name) < 0; case PeerTableModel::Direction: |