mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
qt: Emit dataChanged signal to dynamically re-sort Peers table
This commit is contained in:
parent
8cdf91735f
commit
986bf78d7e
3 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue