Don't forget to clear I2P peer items

PR #18753.
This commit is contained in:
Vladimir Golovnev
2023-03-24 14:06:46 +03:00
committed by GitHub
parent 77bd09bb8b
commit 941c587c68

View File

@@ -393,6 +393,7 @@ void PeerListWidget::copySelectedPeers()
void PeerListWidget::clear() void PeerListWidget::clear()
{ {
m_peerItems.clear(); m_peerItems.clear();
m_I2PPeerItems.clear();
m_itemsByIP.clear(); m_itemsByIP.clear();
const int nbrows = m_listModel->rowCount(); const int nbrows = m_listModel->rowCount();
if (nbrows > 0) if (nbrows > 0)