mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Fix possible crash in TorrentContentModel
This commit is contained in:
parent
85167c9043
commit
3389820c73
@ -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…
Reference in New Issue
Block a user