diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-02-22 09:51:21 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-03-07 16:57:17 +0200 |
commit | 778a64af209e4fa692a3aca8376ba1bd5e1af881 (patch) | |
tree | e4a8cc1e5698a61368aa10b0f3fea4305894f664 /src/qt/peertablemodel.cpp | |
parent | df2d165ba9e0acc53f36a326f68f57ad9c297872 (diff) |
qt: Use PeerTableSortProxy for sorting peer table
Diffstat (limited to 'src/qt/peertablemodel.cpp')
-rw-r--r-- | src/qt/peertablemodel.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qt/peertablemodel.cpp b/src/qt/peertablemodel.cpp index 3459bf4cf8..387f5d5b37 100644 --- a/src/qt/peertablemodel.cpp +++ b/src/qt/peertablemodel.cpp @@ -194,10 +194,7 @@ QVariant PeerTableModel::data(const QModelIndex &index, int role) const } // no default case, so the compiler can warn about missing cases assert(false); } else if (role == StatsRole) { - switch (index.column()) { - case NetNodeId: return QVariant::fromValue(rec); - default: return QVariant(); - } + return QVariant::fromValue(rec); } return QVariant(); |