mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
qt: Emit dataChanged signal to dynamically re-sort Peers table
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user