mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
TorrentContentModel code clean up
This commit is contained in:
parent
61511201db
commit
268dad58f6
1 changed files with 2 additions and 3 deletions
|
@ -98,8 +98,7 @@ void TorrentContentModelFolder::updatePriority()
|
||||||
if (isRootItem())
|
if (isRootItem())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_childItems.isEmpty())
|
Q_ASSERT(!m_childItems.isEmpty());
|
||||||
return;
|
|
||||||
|
|
||||||
// If all children have the same priority
|
// If all children have the same priority
|
||||||
// then the folder should have the same
|
// then the folder should have the same
|
||||||
|
@ -113,7 +112,7 @@ void TorrentContentModelFolder::updatePriority()
|
||||||
}
|
}
|
||||||
// All child items have the same priority
|
// All child items have the same priority
|
||||||
// Update own if necessary
|
// Update own if necessary
|
||||||
if (prio != priority())
|
if (prio != m_priority)
|
||||||
setPriority(prio);
|
setPriority(prio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue