1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 06:17:58 +00:00

TorrentContentModel code clean up

This commit is contained in:
Christophe Dumez 2012-08-26 20:43:27 +03:00
parent 61511201db
commit 268dad58f6

View File

@ -98,8 +98,7 @@ void TorrentContentModelFolder::updatePriority()
if (isRootItem())
return;
if (m_childItems.isEmpty())
return;
Q_ASSERT(!m_childItems.isEmpty());
// If all children have the same priority
// then the folder should have the same
@ -113,7 +112,7 @@ void TorrentContentModelFolder::updatePriority()
}
// All child items have the same priority
// Update own if necessary
if (prio != priority())
if (prio != m_priority)
setPriority(prio);
}