mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Fix possible crash in TorrentContentModel
This commit is contained in:
parent
85167c9043
commit
3389820c73
1 changed files with 0 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue