mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Fix possible crash in TorrentContentModel
This commit is contained in:
@@ -252,7 +252,6 @@ void TorrentContentModel::clear()
|
|||||||
{
|
{
|
||||||
qDebug("clear called");
|
qDebug("clear called");
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
qDeleteAll(m_filesIndex);
|
|
||||||
m_filesIndex.clear();
|
m_filesIndex.clear();
|
||||||
m_rootItem->deleteAllChildren();
|
m_rootItem->deleteAllChildren();
|
||||||
endResetModel();
|
endResetModel();
|
||||||
|
|||||||
Reference in New Issue
Block a user