aboutsummaryrefslogtreecommitdiff
path: root/src/qt/peertablemodel.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-06-28 17:16:48 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-06-28 17:38:01 +0300
commit986bf78d7e8fd9b69841ecb0decaff840efe9cff (patch)
tree8c0c5c9a97ed87cb1d954400e9074b78b23c0547 /src/qt/peertablemodel.cpp
parent8cdf91735f2bdc55577d84a9915f5920ce23b00a (diff)
downloadbitcoin-986bf78d7e8fd9b69841ecb0decaff840efe9cff.tar.xz
qt: Emit dataChanged signal to dynamically re-sort Peers table
Diffstat (limited to 'src/qt/peertablemodel.cpp')
-rw-r--r--src/qt/peertablemodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/peertablemodel.cpp b/src/qt/peertablemodel.cpp
index b324693692..1b7fda6e77 100644
--- a/src/qt/peertablemodel.cpp
+++ b/src/qt/peertablemodel.cpp
@@ -179,5 +179,7 @@ void PeerTableModel::refresh()
m_peers_data.swap(new_peers_data);
}
- Q_EMIT changed();
+ const auto top_left = index(0, 0);
+ const auto bottom_right = index(rowCount() - 1, columnCount() - 1);
+ Q_EMIT dataChanged(top_left, bottom_right);
}