Clean up code

This commit is contained in:
Chocobo1 2020-04-28 02:38:20 +08:00
parent 4f820163ff
commit f6eb341b32
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
3 changed files with 3 additions and 3 deletions

View file

@ -233,7 +233,7 @@ void TorrentContentModel::updateFilesAvailability(const QVector<qreal> &fa)
if (m_filesIndex.size() != fa.size()) return;
emit layoutAboutToBeChanged();
for (int i = 0; i < fa.size(); ++i)
for (int i = 0; i < m_filesIndex.size(); ++i)
m_filesIndex[i]->setAvailability(fa[i]);
// Update folders progress in the tree
m_rootItem->recalculateProgress();